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