pyntbci.utilities.pinv

pyntbci.utilities.pinv(A: ndarray[tuple[Any, ...], dtype[_ScalarT]], alpha: float = None) ndarray[tuple[Any, ...], dtype[_ScalarT]][source]

Compute the pseudo-inverse of a matrix.

Parameters:
  • A (NDArray) – Matrix of shape p x q to compute pseudo-inverse for.

  • alpha (float (default: None)) – The amount of variance the retain.

Returns:

iA – The pseudo-inverse of A of shape p x q.

Return type:

NDArray