pyntbci.utilities.pinv
- pyntbci.utilities.pinv(A: ndarray[tuple[int, ...], dtype[_ScalarType_co]], alpha: float = None) ndarray[tuple[int, ...], dtype[_ScalarType_co]] [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