20 #ifndef SYMMETRIC_MATRIX_2X2_H 21 #define SYMMETRIC_MATRIX_2X2_H 23 #ifndef SHEAF_DLL_SPEC_H 24 #include "SheafSystem/sheaf_dll_spec.h" 27 #ifndef STD_IOSTREAM_H 28 #include "SheafSystem/std_iostream.h" 34 template <
typename T>
class general_matrix_1x2;
35 template <
typename T>
class general_matrix_2x1;
36 template <
typename T>
class general_matrix_2x2;
37 template <
typename T>
class general_matrix_2x3;
39 template <
typename T>
class met_e2_row_dofs_type;
40 template <
typename T>
class st2_e2_row_dofs_type;
56 class symmetric_matrix_2x2
63 operator met_e2_row_dofs_type<T>& ()
const;
68 operator st2_e2_row_dofs_type<T>& ()
const;
107 operator const T* ()
const;
117 operator general_matrix_2x2<T> ()
const;
122 general_matrix_1x2<T>
row(
int xrow)
const;
127 general_matrix_2x1<T>
column(
int xcolumn)
const;
150 void assign(
const T& xscalar);
268 void trace(T& xresult)
const;
305 template <
typename T>
306 std::ostream& operator<<(std::ostream& xos, const symmetric_matrix_2x2<T>& xm);
311 #endif // ifndef SYMMETRIC_MATRIX_2X2_H symmetric_matrix_2x2< T > inverse() const
The inverse of the matrix (auto-allocated).
symmetric_matrix_2x2< T > diagonalization() const
The diagonalization of the matrix (auto-allocated).
bool is_positive_definite() const
True if this matrix is positive definite.
T trace() const
The trace of the matrix (auto-allocated).
symmetric_matrix_2x2< T > adjoint() const
The adjoint of the matrix (auto-allocated).
static int d()
Dimension of the underlying elements.
T determinant() const
The determinant of the matrix (auto-allocated).
static int number_of_rows()
The number of rows.
General matrix with 2 rows and 2 columns.
static int number_of_columns()
The number of columns.
general_matrix_2x1< T > column(int xcolumn) const
A 2x1 matrix containing the elements or column xcolumn.
Symmetric matrix with 2 rows and 2 columns.
General matrix with 2 rows and 1 column.
symmetric_matrix_2x2< T > identity() const
The identity matrix (auto-allocated).
symmetric_matrix_2x2< T > transpose() const
The transpose of the matrix (auto-allocated).
general_matrix_1x2< T > row(int xrow) const
A 1x2 matrix containing the elements or row xrow.
General matrix with 2 rows and 3 columns.
void assign(const T &xscalar)
Assign all elements of this matrix to the value xvalue.
bool is_identity() const
True if this is an identity matrix.
bool is_diagonal() const
True if this matrix is diagonal.
T components[3]
Linear storage array.
Namespace for the fiber_bundles component of the sheaf system.
void multiply(const T &xscalar, symmetric_matrix_2x2< T > &xresult) const
This matrix multiplied by a scalar (pre-allocated).
T * operator[](int xrow)
Pointer to the first element in row xrow of this matrix. Facilitates accessing elements via matrix[i]...
int row_index(int xrow) const
Index for row xrow in the linear storage array.