Note

This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the user guide for the big picture.

3.12.2. nistats.utils.multiple_fast_inverse

nistats.utils.multiple_fast_inverse(a)

Compute the inverse of a set of arrays.

Parameters
a: array_like of shape (n_samples, n_dim, n_dim)

Set of square matrices to be inverted. A is changed in place.

Returns
a: ndarray

yielding the inverse of the inputs

Raises
LinAlgError :

If a is singular.

ValueError :

If a is not square, or not 2-dimensional.

Notes

This function is borrowed from scipy.linalg.inv, but with some customizations for speed-up.