# File numerics/src/tools/pinv.h¶

Go to the source code of this file

peseudo-inverse computations

Functions

double pinv(double *A, int n, int m, double tolerance)

Compute the pseudo-inverse of dense matrix with column major storage.

Return

the conditioning

Parameters
• A: the matrix to be inversed

• n: the number of rows of A

• m: the number of columns of A

• tolerance: threshold used to validate the computation: if the error is less than this value, the computation is considered valid