chainerx.linalg.inv

chainerx.linalg.inv(a)

Computes the inverse of a matrix.

This function computes matrix a_inv from square matrix a such that dot(a, a_inv) = dot(a_inv, a) = eye(a.shape[0]).

Parameters

a (ndarray) – The matrix to be inverted.

Returns

The inverse of a matrix.

Return type

ndarray

Note

The dtype must be float32 or float64 (float16 is not supported yet.)