35#ifndef STK_INVERTLOWERSYM_H
36#define STK_INVERTLOWERSYM_H
52template<
class Matrix,
int Size_>
55 typedef typename Matrix::Type
Type;
93 inv(0, 1) = inv(1, 0);
127 inv(0,1) = inv(1,0); inv(0,2) = inv(2,0);
220 inv(0,1) = inv(1,0); inv(0,2) = inv(2,0); inv(0,3) = inv(3,0);
221 inv(1,2) = inv(2,1); inv(1,3) = inv(3,1);
249 if (!decomp.
run())
return Type(0);
258template<
class Matrix,
int Size_>
261 typedef typename Matrix::Type
Type;
264 switch (
m.sizeRows())
275template<
class Matrix>
278 typedef typename Matrix::Type
Type;
283template<
class Matrix>
286 typedef typename Matrix::Type
Type;
291template<
class Matrix>
294 typedef typename Matrix::Type
Type;
299template<
class Matrix>
302 typedef typename Matrix::Type
Type;
In this file we define the SymEigen class (for a symmetric matrix).
In this file we define the enclosing class of the syevr lapck routine.
ArraySquare & ginv(ArraySquare &res) const
Compute the generalized inverse of the symmetric matrix and put the result in res.
virtual bool run()
Find the eigenvalues and eigenvectors of the matrix.
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
static Type invertLowerSymMatrix33(Matrix const &m, CArraySquare< Type, Size_ > &inv)
compute the inverse of the symmetric 3x3 matrix m using only its lower part and store the result in i...
static Type invertLowerSymMatrix22(Matrix const &m, CArraySquare< Type, Size_ > &inv)
compute the inverse of the lower symmetric 2x2 matrix m using only its lower part and store the resul...
static Type invertLowerSymMatrix44(Matrix const &m, CArraySquare< Type, Size_ > &inv)
compute the inverse of the symmetric 4x4 matrix m using only its lower part and store the result in i...
static Type invertLowerSymMatrixXX(Matrix const &m, CArraySquare< Type, Size_ > &inv)
compute the inverse of the lower symmetric 4x4 matrix m using only its lower part and store the resul...
static Type invertLowerSymMatrix11(Matrix const &m, CArraySquare< Type, Size_ > &inv)
compute the inverse of the lower symmetric matrix m of size 1x1 and store the result in inv.
The namespace STK is the main domain space of the Statistical ToolKit project.
static Type run(Matrix const &m, CArraySquare< Type, 1 > &inv)
static Type run(Matrix const &m, CArraySquare< Type, 2 > &inv)
static Type run(Matrix const &m, CArraySquare< Type, 3 > &inv)
static Type run(Matrix const &m, CArraySquare< Type, 4 > &inv)
computing the inverse of a lower symmetric matrix.
static Type run(Matrix const &m, CArraySquare< Type, Size_ > &inv)
Implementation of the computation of the inverse of a lower symmetric matrix.