vt::linalg::pinv#

template<typename T, size_t N>
Tensor<T, N> vt::linalg::pinv(Tensor<T, N> &tensor, T rcond = 1e-15)#

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

Template Parameters:
  • T – Data type of the tensor.

  • N – Number of dimensions of the tensor.

Parameters:
  • tensor – The tensor object to be inverted.

  • rcond – Cutoff parameter for small singular values.

Returns:

Tensor<T, N>: The pseudo-inverse of the matrix.