20 #ifndef GENERAL_MATRIX_2X2_H 21 #define GENERAL_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 antisymmetric_matrix_2x2;
35 template <
typename T>
class general_matrix_1x2;
36 template <
typename T>
class general_matrix_2x1;
37 template <
typename T>
class general_matrix_2x3;
114 operator const T* ()
const;
153 void assign(
const T& xvalue);
266 void trace(T& xresult)
const;
330 template <
typename T>
331 std::ostream& operator<<(std::ostream& xos, const general_matrix_2x2<T>& xm);
336 #endif // ifndef GENERAL_MATRIX_2X2_H bool is_positive_definite() const
True if this matrix is positive definite.
bool is_identity() const
True if this is an identity matrix.
T trace() const
The trace of the matrix (auto-allocated).
void assign(const T &xvalue)
Assign all elements of this matrix to the value xvalue.
T * operator[](int xrow)
Pointer to the first element in row xrow of this matrix. Facilitates accessing elements via matrix[i]...
general_matrix_2x2< T > inverse() const
The inverse of the matrix (auto-allocated).
static int number_of_columns()
The number of columns.
general_matrix_2x2< T > transpose() const
The transpose of the matrix (auto-allocated).
symmetric_matrix_2x2< T > symmetric_part() const
The symmetric part of a this matrix (auto-allocated).
general_matrix_2x1< T > column(int xcolumn) const
A 2x1 matrix containing the elements or column xcolumn.
T components[4]
Linear storage array.
General matrix with 1 row and 2 columns.
General matrix with 2 rows and 2 columns.
general_matrix_2x2< T > adjoint() const
The adjoint of the matrix (auto-allocated).
Row dofs type for class gl2.
general_matrix_2x2< T > diagonalization() const
The diagonalization of the matrix (auto-allocated).
void multiply(const T &xscalar, general_matrix_2x2< T > &xresult) const
This matrix multiplied by a scalar (pre-allocated).
int row_index(int xrow) const
Index for row xrow in the linear storage array.
general_matrix_2x2< T > identity() const
The identity matrix (auto-allocated).
Symmetric matrix with 2 rows and 2 columns.
General matrix with 2 rows and 1 column.
antisymmetric_matrix_2x2< T > antisymmetric_part() const
The antisymmetric part of a this matrix (auto-allocated).
Antisymmetric matrix with 2 rows and 2 columns.
bool is_diagonal() const
True if this matrix is diagonal.
bool is_antisymmetric() const
True if this matrix is antisymmetric.
T determinant() const
The determinant of the matrix (auto-allocated).
static int number_of_rows()
The number of rows.
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.
static int d()
Dimension of the underlying elements.
bool is_symmetric() const
True if this matrix is symmetric.
Namespace for the fiber_bundles component of the sheaf system.