STK++ 1.0

STK::Ginv Class Reference

The Ginv class is a functor allowing to compute the generalized inverse of a symmetric matrix. More...

#include <STK_Ginv.h>

List of all members.

Public Member Functions

 Ginv ()
virtual ~Ginv ()
void operator() (MatrixSquare *&x)
void operator() (MatrixSquare &x)

Detailed Description

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.


Constructor & Destructor Documentation

STK::Ginv::Ginv ( ) [inline]

Constructor

Definition at line 52 of file STK_Ginv.h.

{ ;}
virtual STK::Ginv::~Ginv ( ) [inline, virtual]

Destructor

Definition at line 54 of file STK_Ginv.h.

{ ;}

Member Function Documentation

void STK::Ginv::operator() ( MatrixSquare *&  x) [inline]

compute the generalized inverse of the symmetric matrix x. x is overwritten by the result.

Parameters:
xthe 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.

Parameters:
xthe 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;
    }

The documentation for this class was generated from the following file: