cupy.linalg.pinv(a, rcond=1e-15)[source]

Compute the Moore-Penrose pseudoinverse of a matrix.

It computes a pseudoinverse of a matrix a, which is a generalization of the inverse matrix with Singular Value Decomposition (SVD). Note that it automatically removes small singular values for stability.

  • a (cupy.ndarray) – The matrix with dimension (M, N)
  • rcond (float) – Cutoff parameter for small singular values. For stability it computes the largest singular value denoted by s, and sets all singular values smaller than s to zero.

The pseudoinverse of a with dimension (N, M).

Return type: