pyntbci.utilities.pinv

pyntbci.utilities.pinv(A: NDArray, alpha: float = None) NDArray[source]

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

Parameters:
  • A (NDArray) – Matrix of shape (n_rows, n_columns) to compute pseudo-inverse for.

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

Returns:

iA – The pseudo-inverse of A of shape (n_columns, n_rows).

Return type:

NDArray