SheafSystem
0.0.0.0
|
Symmetric matrix with 2 rows and 2 columns. More...
#include <symmetric_matrix_2x2.h>
Public Member Functions | |
operator met_e2_row_dofs_type< T > & () const | |
Operator to convert current to met_e2_row_dofs_type. More... | |
operator st2_e2_row_dofs_type< T > & () const | |
Operator to convert current to st2_e2_row_dofs_type. More... | |
T * | operator[] (int xrow) |
Pointer to the first element in row xrow of this matrix. Facilitates accessing elements via matrix[i][j]. More... | |
const T * | operator[] (int xrow) const |
Pointer to the first element in row xrow of this matrix. Facilitates accessing elements via matrix[i][j]. More... | |
operator T* () | |
Conversion (cast) operator to convert to the associated matrix type (non const version). More... | |
operator const T * () const | |
Conversion (cast) operator to convert to the associated matrix type (const version). More... | |
int | row_index (int xrow) const |
Index for row xrow in the linear storage array. More... | |
operator general_matrix_2x2< T > () const | |
Conversion operator to convert to the associated general matrix type. More... | |
general_matrix_1x2< T > | row (int xrow) const |
A 1x2 matrix containing the elements or row xrow. More... | |
general_matrix_2x1< T > | column (int xcolumn) const |
A 2x1 matrix containing the elements or column xcolumn. More... | |
void | adjoint (symmetric_matrix_2x2< T > &xresult) const |
The adjoint of the matrix (pre-allocated). More... | |
symmetric_matrix_2x2< T > | adjoint () const |
The adjoint of the matrix (auto-allocated). More... | |
void | assign (const T &xscalar) |
Assign all elements of this matrix to the value xvalue. More... | |
void | determinant (T &xresult) const |
The determinant of the matrix (pre-allocated). More... | |
T | determinant () const |
The determinant of the matrix (auto-allocated). More... | |
void | diagonalization (symmetric_matrix_2x2< T > &xresult) const |
The diagonalization of the matrix (pre-allocated). More... | |
symmetric_matrix_2x2< T > | diagonalization () const |
The diagonalization of the matrix (auto-allocated). More... | |
void | identity (symmetric_matrix_2x2< T > &xresult) const |
The identity matrix (pre-allocated). More... | |
symmetric_matrix_2x2< T > | identity () const |
The identity matrix (auto-allocated). More... | |
void | inverse (symmetric_matrix_2x2< T > &xresult) const |
The inverse of the matrix (pre-allocated). More... | |
symmetric_matrix_2x2< T > | inverse () const |
The inverse of the matrix (auto-allocated). More... | |
bool | is_diagonal () const |
True if this matrix is diagonal. More... | |
bool | is_identity () const |
True if this is an identity matrix. More... | |
bool | is_positive_definite () const |
True if this matrix is positive definite. More... | |
void | multiply (const T &xscalar, symmetric_matrix_2x2< T > &xresult) const |
This matrix multiplied by a scalar (pre-allocated). More... | |
symmetric_matrix_2x2< T > | multiply (const T &xscalar) const |
This matrix multiplied by a scalar (auto-allocated). More... | |
void | multiply (const general_matrix_2x1< T > &xother, general_matrix_2x1< T > &xresult) const |
Premultiply matrix xother by this matrix (pre-allocated). More... | |
general_matrix_2x1< T > | multiply (const general_matrix_2x1< T > &xother) const |
Premultiply matrix xother by this matrix (auto-allocated). More... | |
void | multiply (const general_matrix_2x2< T > &xother, general_matrix_2x2< T > &xresult) const |
Premultiply matrix xother by this matrix (pre-allocated). More... | |
general_matrix_2x2< T > | multiply (const general_matrix_2x2< T > &xother) const |
Premultiply matrix xother by this matrix (auto-allocated). More... | |
void | multiply (const general_matrix_2x3< T > &xother, general_matrix_2x3< T > &xresult) const |
Premultiply matrix xother by this matrix (pre-allocated). More... | |
general_matrix_2x3< T > | multiply (const general_matrix_2x3< T > &xother) const |
Premultiply matrix xother by this matrix (auto-allocated). More... | |
void | multiply (const symmetric_matrix_2x2< T > &xother, general_matrix_2x2< T > &xresult) const |
Premultiply matrix xother by this matrix (pre-allocated). Note that multiplying 2 symmetric matrices results (in general) in a general square matrix. More... | |
general_matrix_2x2< T > | multiply (const symmetric_matrix_2x2< T > &xother) const |
Premultiply matrix xother by this matrix (auto-allocated). Note that multiplying 2 symmetric matrices results (in general) in a general square matrix. More... | |
void | trace (T &xresult) const |
The trace of the matrix (pre-allocated). More... | |
T | trace () const |
The trace of the matrix (auto-allocated). More... | |
void | transpose (symmetric_matrix_2x2< T > &xresult) const |
The transpose of the matrix (pre-allocated). More... | |
symmetric_matrix_2x2< T > | transpose () const |
The transpose of the matrix (auto-allocated). More... | |
Static Public Member Functions | |
static int | number_of_rows () |
The number of rows. More... | |
static int | number_of_columns () |
The number of columns. More... | |
static int | d () |
Dimension of the underlying elements. More... | |
Public Attributes | |
T | components [3] |
Linear storage array. More... | |
Symmetric matrix with 2 rows and 2 columns.
Class symmetric_matrix_2x2 is a special kind of matrix class intended to be used in conjunction with various row_dofs_type classes (pod types). The pod types will be converted (cast) to appropriate matrix types. So, this class is also required to be a pod type also (ie: really just a struct with no inheritance, no constructors, no virtual functions, etc.).
Definition at line 38 of file general_matrix_2x2.h.
void fiber_bundle::symmetric_matrix_2x2< T >::adjoint | ( | symmetric_matrix_2x2< T > & | xresult | ) | const |
The adjoint of the matrix (pre-allocated).
Definition at line 379 of file symmetric_matrix_2x2.impl.h.
References fiber_bundle::symmetric_matrix_2x2< T >::adjoint().
symmetric_matrix_2x2< T > fiber_bundle::symmetric_matrix_2x2< T >::adjoint | ( | ) | const |
The adjoint of the matrix (auto-allocated).
Definition at line 408 of file symmetric_matrix_2x2.impl.h.
References fiber_bundle::symmetric_matrix_2x2< T >::assign().
Referenced by fiber_bundle::symmetric_matrix_2x2< T >::adjoint(), and fiber_bundle::symmetric_matrix_2x2< T >::column().
void fiber_bundle::symmetric_matrix_2x2< T >::assign | ( | const T & | xscalar | ) |
Assign all elements of this matrix to the value xvalue.
Definition at line 428 of file symmetric_matrix_2x2.impl.h.
References fiber_bundle::symmetric_matrix_2x2< T >::determinant().
Referenced by fiber_bundle::symmetric_matrix_2x2< T >::adjoint().
general_matrix_2x1< T > fiber_bundle::symmetric_matrix_2x2< T >::column | ( | int | xcolumn | ) | const |
A 2x1 matrix containing the elements or column xcolumn.
Definition at line 346 of file symmetric_matrix_2x2.impl.h.
References fiber_bundle::symmetric_matrix_2x2< T >::adjoint(), and fiber_bundle::general_matrix_2x1< T >::components.
Referenced by fiber_bundle::symmetric_matrix_2x2< T >::row().
|
static |
Dimension of the underlying elements.
Definition at line 152 of file symmetric_matrix_2x2.impl.h.
References fiber_bundle::symmetric_matrix_2x2< T >::operator[]().
Referenced by fiber_bundle::symmetric_matrix_2x2< T >::number_of_columns().
void fiber_bundle::symmetric_matrix_2x2< T >::determinant | ( | T & | xresult | ) | const |
The determinant of the matrix (pre-allocated).
Definition at line 452 of file symmetric_matrix_2x2.impl.h.
References fiber_bundle::symmetric_matrix_2x2< T >::determinant().
T fiber_bundle::symmetric_matrix_2x2< T >::determinant | ( | ) | const |
The determinant of the matrix (auto-allocated).
Definition at line 477 of file symmetric_matrix_2x2.impl.h.
References fiber_bundle::determinant(), and fiber_bundle::symmetric_matrix_2x2< T >::diagonalization().
Referenced by fiber_bundle::symmetric_matrix_2x2< T >::assign(), and fiber_bundle::symmetric_matrix_2x2< T >::determinant().
void fiber_bundle::symmetric_matrix_2x2< T >::diagonalization | ( | symmetric_matrix_2x2< T > & | xresult | ) | const |
The diagonalization of the matrix (pre-allocated).
Definition at line 498 of file symmetric_matrix_2x2.impl.h.
References fiber_bundle::symmetric_matrix_2x2< T >::diagonalization(), fiber_bundle::symmetric_matrix_2x2< T >::is_diagonal(), and fiber_bundle::sec_at0_algebra::sqrt().
symmetric_matrix_2x2< T > fiber_bundle::symmetric_matrix_2x2< T >::diagonalization | ( | ) | const |
The diagonalization of the matrix (auto-allocated).
Definition at line 560 of file symmetric_matrix_2x2.impl.h.
References fiber_bundle::symmetric_matrix_2x2< T >::identity(), and fiber_bundle::symmetric_matrix_2x2< T >::is_diagonal().
Referenced by fiber_bundle::symmetric_matrix_2x2< T >::determinant(), and fiber_bundle::symmetric_matrix_2x2< T >::diagonalization().
void fiber_bundle::symmetric_matrix_2x2< T >::identity | ( | symmetric_matrix_2x2< T > & | xresult | ) | const |
The identity matrix (pre-allocated).
Definition at line 583 of file symmetric_matrix_2x2.impl.h.
References fiber_bundle::symmetric_matrix_2x2< T >::identity(), and fiber_bundle::symmetric_matrix_2x2< T >::is_identity().
symmetric_matrix_2x2< T > fiber_bundle::symmetric_matrix_2x2< T >::identity | ( | ) | const |
The identity matrix (auto-allocated).
Definition at line 607 of file symmetric_matrix_2x2.impl.h.
References fiber_bundle::symmetric_matrix_2x2< T >::inverse(), and fiber_bundle::symmetric_matrix_2x2< T >::is_identity().
Referenced by fiber_bundle::symmetric_matrix_2x2< T >::diagonalization(), and fiber_bundle::symmetric_matrix_2x2< T >::identity().
void fiber_bundle::symmetric_matrix_2x2< T >::inverse | ( | symmetric_matrix_2x2< T > & | xresult | ) | const |
The inverse of the matrix (pre-allocated).
Definition at line 630 of file symmetric_matrix_2x2.impl.h.
References fiber_bundle::determinant(), and fiber_bundle::symmetric_matrix_2x2< T >::inverse().
symmetric_matrix_2x2< T > fiber_bundle::symmetric_matrix_2x2< T >::inverse | ( | ) | const |
The inverse of the matrix (auto-allocated).
Definition at line 666 of file symmetric_matrix_2x2.impl.h.
References fiber_bundle::inverse(), and fiber_bundle::symmetric_matrix_2x2< T >::is_diagonal().
Referenced by fiber_bundle::symmetric_matrix_2x2< T >::identity(), and fiber_bundle::symmetric_matrix_2x2< T >::inverse().
bool fiber_bundle::symmetric_matrix_2x2< T >::is_diagonal | ( | ) | const |
True if this matrix is diagonal.
Definition at line 686 of file symmetric_matrix_2x2.impl.h.
References fiber_bundle::symmetric_matrix_2x2< T >::is_identity().
Referenced by fiber_bundle::symmetric_matrix_2x2< T >::diagonalization(), and fiber_bundle::symmetric_matrix_2x2< T >::inverse().
bool fiber_bundle::symmetric_matrix_2x2< T >::is_identity | ( | ) | const |
True if this is an identity matrix.
Definition at line 708 of file symmetric_matrix_2x2.impl.h.
References fiber_bundle::symmetric_matrix_2x2< T >::is_positive_definite().
Referenced by fiber_bundle::symmetric_matrix_2x2< T >::identity(), and fiber_bundle::symmetric_matrix_2x2< T >::is_diagonal().
bool fiber_bundle::symmetric_matrix_2x2< T >::is_positive_definite | ( | ) | const |
True if this matrix is positive definite.
Definition at line 730 of file symmetric_matrix_2x2.impl.h.
References fiber_bundle::determinant(), and fiber_bundle::symmetric_matrix_2x2< T >::multiply().
Referenced by fiber_bundle::symmetric_matrix_2x2< T >::is_identity(), and fiber_bundle::general_matrix_2x2< T >::is_positive_definite().
void fiber_bundle::symmetric_matrix_2x2< T >::multiply | ( | const T & | xscalar, |
symmetric_matrix_2x2< T > & | xresult | ||
) | const |
This matrix multiplied by a scalar (pre-allocated).
Definition at line 759 of file symmetric_matrix_2x2.impl.h.
References fiber_bundle::symmetric_matrix_2x2< T >::components.
Referenced by fiber_bundle::symmetric_matrix_2x2< T >::is_positive_definite(), and fiber_bundle::symmetric_matrix_2x2< T >::multiply().
symmetric_matrix_2x2< T > fiber_bundle::symmetric_matrix_2x2< T >::multiply | ( | const T & | xscalar | ) | const |
This matrix multiplied by a scalar (auto-allocated).
Definition at line 785 of file symmetric_matrix_2x2.impl.h.
References fiber_bundle::symmetric_matrix_2x2< T >::multiply(), and fiber_bundle::vd_algebra::multiply().
void fiber_bundle::symmetric_matrix_2x2< T >::multiply | ( | const general_matrix_2x1< T > & | xother, |
general_matrix_2x1< T > & | xresult | ||
) | const |
Premultiply matrix xother by this matrix (pre-allocated).
Definition at line 806 of file symmetric_matrix_2x2.impl.h.
References fiber_bundle::symmetric_matrix_2x2< T >::multiply().
general_matrix_2x1< T > fiber_bundle::symmetric_matrix_2x2< T >::multiply | ( | const general_matrix_2x1< T > & | xother | ) | const |
Premultiply matrix xother by this matrix (auto-allocated).
Definition at line 838 of file symmetric_matrix_2x2.impl.h.
References fiber_bundle::symmetric_matrix_2x2< T >::multiply(), and fiber_bundle::vd_algebra::multiply().
void fiber_bundle::symmetric_matrix_2x2< T >::multiply | ( | const general_matrix_2x2< T > & | xother, |
general_matrix_2x2< T > & | xresult | ||
) | const |
Premultiply matrix xother by this matrix (pre-allocated).
Definition at line 914 of file symmetric_matrix_2x2.impl.h.
References fiber_bundle::symmetric_matrix_2x2< T >::multiply().
general_matrix_2x2< T > fiber_bundle::symmetric_matrix_2x2< T >::multiply | ( | const general_matrix_2x2< T > & | xother | ) | const |
Premultiply matrix xother by this matrix (auto-allocated).
Definition at line 950 of file symmetric_matrix_2x2.impl.h.
References fiber_bundle::symmetric_matrix_2x2< T >::multiply(), and fiber_bundle::vd_algebra::multiply().
void fiber_bundle::symmetric_matrix_2x2< T >::multiply | ( | const general_matrix_2x3< T > & | xother, |
general_matrix_2x3< T > & | xresult | ||
) | const |
Premultiply matrix xother by this matrix (pre-allocated).
Definition at line 970 of file symmetric_matrix_2x2.impl.h.
References fiber_bundle::symmetric_matrix_2x2< T >::multiply().
general_matrix_2x3< T > fiber_bundle::symmetric_matrix_2x2< T >::multiply | ( | const general_matrix_2x3< T > & | xother | ) | const |
Premultiply matrix xother by this matrix (auto-allocated).
Definition at line 1012 of file symmetric_matrix_2x2.impl.h.
References fiber_bundle::vd_algebra::multiply(), and fiber_bundle::symmetric_matrix_2x2< T >::trace().
void fiber_bundle::symmetric_matrix_2x2< T >::multiply | ( | const symmetric_matrix_2x2< T > & | xother, |
general_matrix_2x2< T > & | xresult | ||
) | const |
Premultiply matrix xother by this matrix (pre-allocated). Note that multiplying 2 symmetric matrices results (in general) in a general square matrix.
Definition at line 858 of file symmetric_matrix_2x2.impl.h.
References fiber_bundle::symmetric_matrix_2x2< T >::multiply().
general_matrix_2x2< T > fiber_bundle::symmetric_matrix_2x2< T >::multiply | ( | const symmetric_matrix_2x2< T > & | xother | ) | const |
Premultiply matrix xother by this matrix (auto-allocated). Note that multiplying 2 symmetric matrices results (in general) in a general square matrix.
Definition at line 894 of file symmetric_matrix_2x2.impl.h.
References fiber_bundle::symmetric_matrix_2x2< T >::multiply(), and fiber_bundle::vd_algebra::multiply().
|
static |
The number of columns.
Definition at line 135 of file symmetric_matrix_2x2.impl.h.
References fiber_bundle::symmetric_matrix_2x2< T >::d().
Referenced by fiber_bundle::symmetric_matrix_2x2< T >::number_of_rows().
|
static |
The number of rows.
Definition at line 118 of file symmetric_matrix_2x2.impl.h.
References fiber_bundle::symmetric_matrix_2x2< T >::number_of_columns().
Referenced by fiber_bundle::symmetric_matrix_2x2< T >::operator st2_e2_row_dofs_type< T > &().
fiber_bundle::symmetric_matrix_2x2< T >::operator const T * | ( | ) | const |
Conversion (cast) operator to convert to the associated matrix type (const version).
Definition at line 235 of file symmetric_matrix_2x2.impl.h.
References fiber_bundle::symmetric_matrix_2x2< T >::row_index().
fiber_bundle::symmetric_matrix_2x2< T >::operator general_matrix_2x2< T > | ( | ) | const |
Conversion operator to convert to the associated general matrix type.
Definition at line 283 of file symmetric_matrix_2x2.impl.h.
References fiber_bundle::symmetric_matrix_2x2< T >::row().
fiber_bundle::symmetric_matrix_2x2< T >::operator met_e2_row_dofs_type< T > & | ( | ) | const |
Operator to convert current to met_e2_row_dofs_type.
Definition at line 76 of file symmetric_matrix_2x2.impl.h.
fiber_bundle::symmetric_matrix_2x2< T >::operator st2_e2_row_dofs_type< T > & | ( | ) | const |
Operator to convert current to st2_e2_row_dofs_type.
Definition at line 96 of file symmetric_matrix_2x2.impl.h.
References fiber_bundle::symmetric_matrix_2x2< T >::number_of_rows().
fiber_bundle::symmetric_matrix_2x2< T >::operator T* | ( | ) |
Conversion (cast) operator to convert to the associated matrix type (non const version).
Definition at line 213 of file symmetric_matrix_2x2.impl.h.
T * fiber_bundle::symmetric_matrix_2x2< T >::operator[] | ( | int | xrow | ) |
Pointer to the first element in row xrow of this matrix. Facilitates accessing elements via matrix[i][j].
Definition at line 169 of file symmetric_matrix_2x2.impl.h.
Referenced by fiber_bundle::symmetric_matrix_2x2< T >::d().
const T * fiber_bundle::symmetric_matrix_2x2< T >::operator[] | ( | int | xrow | ) | const |
Pointer to the first element in row xrow of this matrix. Facilitates accessing elements via matrix[i][j].
Definition at line 191 of file symmetric_matrix_2x2.impl.h.
general_matrix_1x2< T > fiber_bundle::symmetric_matrix_2x2< T >::row | ( | int | xrow | ) | const |
A 1x2 matrix containing the elements or row xrow.
Definition at line 311 of file symmetric_matrix_2x2.impl.h.
References fiber_bundle::symmetric_matrix_2x2< T >::column(), and fiber_bundle::general_matrix_1x2< T >::components.
Referenced by fiber_bundle::symmetric_matrix_2x2< T >::operator general_matrix_2x2< T >().
int fiber_bundle::symmetric_matrix_2x2< T >::row_index | ( | int | xrow | ) | const |
Index for row xrow in the linear storage array.
Definition at line 258 of file symmetric_matrix_2x2.impl.h.
Referenced by fiber_bundle::symmetric_matrix_2x2< T >::operator const T *().
void fiber_bundle::symmetric_matrix_2x2< T >::trace | ( | T & | xresult | ) | const |
The trace of the matrix (pre-allocated).
Definition at line 1032 of file symmetric_matrix_2x2.impl.h.
References fiber_bundle::symmetric_matrix_2x2< T >::trace().
T fiber_bundle::symmetric_matrix_2x2< T >::trace | ( | ) | const |
The trace of the matrix (auto-allocated).
Definition at line 1053 of file symmetric_matrix_2x2.impl.h.
References fiber_bundle::trace(), and fiber_bundle::symmetric_matrix_2x2< T >::transpose().
Referenced by fiber_bundle::symmetric_matrix_2x2< T >::multiply(), and fiber_bundle::symmetric_matrix_2x2< T >::trace().
void fiber_bundle::symmetric_matrix_2x2< T >::transpose | ( | symmetric_matrix_2x2< T > & | xresult | ) | const |
The transpose of the matrix (pre-allocated).
Definition at line 1074 of file symmetric_matrix_2x2.impl.h.
References fiber_bundle::symmetric_matrix_2x2< T >::components, and fiber_bundle::symmetric_matrix_2x2< T >::transpose().
symmetric_matrix_2x2< T > fiber_bundle::symmetric_matrix_2x2< T >::transpose | ( | ) | const |
The transpose of the matrix (auto-allocated).
Definition at line 1107 of file symmetric_matrix_2x2.impl.h.
Referenced by fiber_bundle::symmetric_matrix_2x2< T >::trace(), and fiber_bundle::symmetric_matrix_2x2< T >::transpose().
T fiber_bundle::symmetric_matrix_2x2< T >::components[3] |
Linear storage array.
Definition at line 132 of file symmetric_matrix_2x2.h.
Referenced by fiber_bundle::symmetric_matrix_2x2< T >::multiply(), and fiber_bundle::symmetric_matrix_2x2< T >::transpose().