35#ifndef STK_INVERTMATRIX_H
36#define STK_INVERTMATRIX_H
50template<
class Matrix,
int Size_>
class InvertMatrix;
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_>
139 size_ = (sizeRows_<sizeCols_) ? sizeRows_ : sizeCols_
155template<
class Matrix,
int Size_>
166 typedef typename Matrix::Type
Type;
171 { inv_.shift(
m.beginRows());}
178 inline Type const&
det()
const {
return det_;}
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.
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.
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
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 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.