pseudoinverse
int ocmath_pinv( const double * pMatI, double * pPinv, int m, int n, double dTol = -1 )
Returns 0 if success, 1 if not.
EX1
void ocmath_pinv_ex1() { matrix mat0={{2,3,5},{7,11,13}}; matrix mat1; int m = mat0.GetNumRows(); int n = mat0.GetNumCols(); mat1.SetSize(n,m); int iRet = ocmath_pinv(mat0, mat1, m, n); }
Pseudoinverse, the same as Matlab function pinv()
origin.h