|
STK++ 1.0
|
The Ginv class is a functor allowing to compute the generalized inverse of a symmetric matrix. More...
#include <STK_Ginv.h>
Public Member Functions | |
| Ginv () | |
| virtual | ~Ginv () |
| void | operator() (MatrixSquare *&x) |
| void | operator() (MatrixSquare &x) |
The Ginv class is a functor allowing to compute the generalized inverse of a symmetric matrix.
Definition at line 48 of file STK_Ginv.h.
| STK::Ginv::Ginv | ( | ) | [inline] |
| virtual STK::Ginv::~Ginv | ( | ) | [inline, virtual] |
| void STK::Ginv::operator() | ( | MatrixSquare *& | x | ) | [inline] |
compute the generalized inverse of the symmetric matrix x. x is overwritten by the result.
| x | the matrix to inverse. |
Definition at line 59 of file STK_Ginv.h.
References STK::Eigenvalues::ginv().
{
Eigenvalues* decomp = new Eigenvalues(*x);
delete x;
x = decomp->ginv();
delete decomp;
}
| void STK::Ginv::operator() | ( | MatrixSquare & | x | ) | [inline] |
Compute the generalized inverse of the symmetric matrix x. x is overwritten by the result.
| x | the matrix to inverse. |
Definition at line 70 of file STK_Ginv.h.
References STK::Eigenvalues::ginv().
{
Eigenvalues* decomp = new Eigenvalues(x);
decomp->ginv(x);
delete decomp;
}