chainerx.linalg.pinv

chainerx.linalg.pinv(a, rcond=1e-15)

Compute the (Moore-Penrose) pseudo-inverse of a matrix.

Calculate the generalized inverse of a matrix using its singular-value decomposition (SVD) and including all large singular values.

Parameters
  • a (ndarray) – The input matrix to be pseudo-inverted.

  • rcond (float) – Cutoff for small singular values.

Returns

The pseudo-inverse of a.

Return type

ndarray

Note

The dtype must be float32 or float64 (float16 is not supported yet.)