matrix.I
Returns the (multiplicative) inverse of invertible self
.
Parameters: |
None |
---|---|
Returns: |
ret : matrix object If |
Raises: |
numpy.linalg.LinAlgError: Singular matrix If |
See also
>>> m = np.matrix('[1, 2; 3, 4]'); m matrix([[1, 2], [3, 4]]) >>> m.getI() matrix([[-2. , 1. ], [ 1.5, -0.5]]) >>> m.getI() * m matrix([[ 1., 0.], [ 0., 1.]])
© 2008–2016 NumPy Developers
Licensed under the NumPy License.
https://docs.scipy.org/doc/numpy-1.10.1/reference/generated/numpy.matrix.I.html