
66 Appendix A2 Exported Function Summary
Return value
!NULL: pointer to mRes indicating success;
NULL: failure: not enough memory or couldn’t find all singular values.
Description
Uses IDecSVD to find the generalized inverse.
MatGetAt
double MatGetAt(MATRIX mSrc, int i, int j);
mSrc in: matrix
i in: row index
j in: column index
Return value
Returns mDest[i][j].
MatI
MATRIX MatI(MATRIX mDest, int cM);
mDest[cM][cM] in: allocated matrix
out: identity matrix
Return value
Returns a pointer to mDest.
MatNaN
MATRIX MatNaN(MATRIX mDest, int cM, int cN);
mDest[cM][cN] in: allocated matrix
out: matrix filled with the NaN value (Not a Num-
ber)
Return value
Returns a pointer to mDest.
MatRan, MatRanNormal
MATRIX MatRan(MATRIX mA, int cR, int cC);
MATRIX MatRanNormal(MATRIX mA, int cR, int cC);
mA[cR][cC] in: allocated matrix
out: filled with random numbers
Return value
Both functions return mA
MatRan generates uniform random numbers, MatRanNormal standard normals.
MatReflect, MatTranspose
Comentarios a estos manuales