Skip to content

pinv

builtin · libnexusinterp/corefcn/pinv-proprietary.cc

: X = pinv (A)
: X = pinv (A, tol)

Return the Moore-Penrose pseudoinverse of the matrix A.

The result is built from the singular value decomposition A = U*S*V' as V*pinv(S)*U', where singular values not exceeding tol are treated as zero. By default tol is max (size (A)) * eps (norm (A)).

For an m-by-n input the output is n-by-m, and single precision input gives single precision output.