35#ifndef STK_INVERTMATRIX_H
36#define STK_INVERTMATRIX_H
57template<
class Matrix,
int Size_,
int structure_>
63template<
class Matrix,
int Size_>
66 typedef typename Matrix::Type
Type;
73template<
class Matrix,
int Size_>
76 typedef typename Matrix::Type
Type;
83template<
class Matrix,
int Size_>
86 typedef typename Matrix::Type
Type;
93template<
class Matrix,
int Size_>
96 typedef typename Matrix::Type
Type;
103template<
class Matrix,
int Size_>
106 typedef typename Matrix::Type
Type;
113template<
class Matrix,
int Size_>
116 typedef typename Matrix::Type
Type;
120template<
class Matrix,
int Size_>
123 typedef typename Matrix::Type
Type;
131template<
class Matrix,
int Size_>
155template<
class Matrix,
int Size_>
166 typedef typename Matrix::Type
Type;
171 {
inv_.shift(m.beginRows());}
195template<
class Matrix>
203 size_ = (sizeRows_<sizeCols_) ? sizeRows_ : sizeCols_
In this file we implement the final class CArray.
In this file we implement inversion method for lower symmetric matrices.
In this file we implement inversion method for lower triangular matrices.
In this file we implement inversion method for symmetric matrices.
In this file we implement inversion method for upper symmetric matrices.
In this file we implement inversion method for upper triangular matrices.
In this file we implement inversion method for general matrices.
Declaration of the lower triangular matrix class.
Declaration of the upper triangular matrix class.
specialization for the square case.
The InvertMatrix class is a functor class allowing to compute the inverse of a symmetric matrix.
hidden::AlgebraTraits< InvertMatrix< Matrix, Size_ > >::Dispatcher Dispatcher
~InvertMatrix()
Destructor.
bool isInvertible() const
Result const & operator()()
compute the inverse of the matrix m_.
Type det_
determinant of the matrix m_
Result const & inv() const
Result inv_
The inverse (or adjugate matrix if det_ is zero) of m_.
hidden::AlgebraTraits< InvertMatrix< Matrix, Size_ > >::Result Result
InvertMatrix(Matrix const &m)
Constructor.
hidden::AlgebraTraits< InvertMatrix< Matrix, hidden::Traits< Matrix >::sizeRows_ > >::Result invert(Matrix const &mat)
Utility function allowing to compute the inverse of a matrix.
the namespace Arrays contain the enum and utilities method used by the containers classes.
The hidden namespace enclose the classes and methods which are used internally by the STK++ classes.
The namespace STK is the main domain space of the Statistical ToolKit project.
DispatcherChooser< Matrix, Size_, structure_ >::Result Result
DispatcherChooser< Matrix, Size_, structure_ >::Dispatcher Dispatcher
traits class for the algebra methods.
CArraySquare< Type, Size_ > Result
hidden::InvertMatrixDispatcher< Matrix, Size_ > Dispatcher
hidden::InvertLowerSymMatrixDispatcher< Matrix, Size_ > Dispatcher
CArraySquare< Type, Size_ > Result
hidden::InvertLowerTriangularDispatcher< Matrix, Size_ > Dispatcher
Array2DLowerTriangular< Type > Result
CArraySquare< Type, Size_ > Result
hidden::InvertMatrixDispatcher< Matrix, Size_ > Dispatcher
hidden::InvertSymMatrixDispatcher< Matrix, Size_ > Dispatcher
CArraySquare< Type, Size_ > Result
hidden::InvertUpperSymMatrixDispatcher< Matrix, Size_ > Dispatcher
CArraySquare< Type, Size_ > Result
Array2DUpperTriangular< Type > Result
hidden::InvertUpperTriangularDispatcher< Matrix, Size_ > Dispatcher
Utility class allowing to choose the dispatcher for inversion matrix.
computing the inverse of a lower symmetric matrix.
utility class allowing to call the correct static function computing the inverse of a matrix.
computing the inverse of a matrix.
computing the inverse of a symmetric matrix.
computing the inverse of a symmetric matrix.
computing the inverse of a matrix.