Inherits opentl::math::Matrix.
Public Member Functions | |
virtual SquareMatrix | cofactor () |
Calculate cofactor matrix. | |
virtual double | determinant () const |
Calculate determinant of matrix. | |
virtual void | diagonal (math::Vector &v) const |
Returns the elements on the matrix main diagonal. | |
virtual void | eigenValues (Matrix &eigenVectors, Vector &values) const |
Calculate Eigenvalues and Eigenvectors of square matrix. | |
virtual double | getTrace () const |
Computes the trace (=sum of the diagonal). | |
virtual void | identity () |
Set matrix values to identity. | |
virtual bool | invert (opentl::math::SquareMatrix &out, const InversionMethod &method=LU) const |
virtual SquareMatrix | invert (const InversionMethod &method=LU) const |
SquareMatrix (const Matrix &matrix) | |
SquareMatrix (const SquareMatrix &matrix) | |
Constructor based on content of an existing SquareMatrix matrix. | |
SquareMatrix (std::size_t dim) | |
Constructor. | |
SquareMatrix () | |
virtual | ~SquareMatrix () |
Destructor. |
opentl::math::SquareMatrix::SquareMatrix | ( | ) |
opentl::math::SquareMatrix::SquareMatrix | ( | std::size_t | dim | ) | [explicit] |
Constructor.
dim | dimension of square matrix |
opentl::math::SquareMatrix::SquareMatrix | ( | const SquareMatrix & | matrix | ) |
opentl::math::SquareMatrix::SquareMatrix | ( | const Matrix & | matrix | ) | [explicit] |
virtual opentl::math::SquareMatrix::~SquareMatrix | ( | ) | [virtual] |
Destructor.
virtual SquareMatrix opentl::math::SquareMatrix::cofactor | ( | ) | [virtual] |
Calculate cofactor matrix.
virtual double opentl::math::SquareMatrix::determinant | ( | ) | const [virtual] |
Calculate determinant of matrix.
virtual void opentl::math::SquareMatrix::diagonal | ( | math::Vector & | v | ) | const [virtual] |
Returns the elements on the matrix main diagonal.
v | Diagonal elements in vector representation. |
virtual void opentl::math::SquareMatrix::eigenValues | ( | Matrix & | eigenVectors, | |
Vector & | values | |||
) | const [virtual] |
Calculate Eigenvalues and Eigenvectors of square matrix.
virtual double opentl::math::SquareMatrix::getTrace | ( | ) | const [virtual] |
Computes the trace (=sum of the diagonal).
virtual void opentl::math::SquareMatrix::identity | ( | ) | [virtual] |
Set matrix values to identity.
virtual bool opentl::math::SquareMatrix::invert | ( | opentl::math::SquareMatrix & | out, | |
const InversionMethod & | method = LU | |||
) | const [virtual] |
brief inverts this matrix
method | LU - Gaussian elimination with optimal pivot element chose; SVD - Singular value decomposition (SVD) method; SVD_SYM - SVD method for a symmetric positively-defined matrix |
virtual SquareMatrix opentl::math::SquareMatrix::invert | ( | const InversionMethod & | method = LU |
) | const [virtual] |
brief inverts square matrices
method | LU - Gaussian elimination with optimal pivot element chose; SVD - Singular value decomposition (SVD) method; SVD_SYM - SVD method for a symmetric positively-defined matrix Note: if the inversion fails the resulting matrix is a ZERO matrix! |