matrix.I¶Returns the (multiplicative) inverse of invertibleself.
| Parameters: | None |
|---|---|
| Returns: | ret : matrix object
|
| Raises: | numpy.linalg.LinAlgError: Singular matrix
|
See also
Examples
>>>m=np.matrix('[1, 2; 3, 4]');mmatrix([[1, 2], [3, 4]])>>>m.getI()matrix([[-2. , 1. ], [ 1.5, -0.5]])>>>m.getI()*mmatrix([[ 1., 0.], [ 0., 1.]])