Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

template<class ArrayT>
ArrayT* Impala::Core::Matrix::MatPInv ( ArrayT *  a,
double  tolerance = -1 
) [inline]

Definition at line 23 of file MatPInv.h.

References MatNrCol(), MatNrRow(), MatSVD(), and MatTranspose().

00024 {
00025     int m = MatNrRow(a);
00026     int n = MatNrCol(a);
00027     
00028     if(n > m)
00029         return MatTranspose(MatPInv(MatTranspose(a), tolerance));
00030 
00031     Mat* u=0;
00032     Mat* s=0;
00033     Mat* v=0;
00034 
00035     MatSVD(a, u, s, v);
00036     Mat* res=  MatPInv(a,u,s,v,tolerance);
00037 
00038     delete u;
00039     delete s;
00040     delete v;
00041 
00042     return res;
00043 }

Here is the call graph for this function:


Generated on Fri Mar 19 11:16:06 2010 for ImpalaSrc by  doxygen 1.5.1