-
matrix.getI()[source] -
Returns the (multiplicative) inverse of invertible
self.Parameters: None
Returns: ret : matrix object
If
selfis non-singular,retis such thatret * self==self * ret==np.matrix(np.eye(self[0,:].size)all returnTrue.Raises: numpy.linalg.LinAlgError: Singular matrix
If
selfis singular.See also
Examples
>>> 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.]])
matrix.getI()
2025-01-10 15:47:30
Please login to continue.