chainer.functions.inv

chainer.functions.inv(a)[source]

Computes the inverse of square matrix.

a (Variable or N-dimensional array):

Input array to compute the inverse for. Shape of the array should be (n, n) where n is the dimensionality of a square matrix.

Returns

Matrix inverse of a.

Return type

Variable