Movatterモバイル変換


[0]ホーム

URL:


SciPy

numpy.matrix.I

matrix.I

Returns the (multiplicative) inverse of invertibleself.

Parameters:

None

Returns:

ret : matrix object

Ifself is non-singular,ret is such thatret*self ==self*ret ==np.matrix(np.eye(self[0,:].size) all returnTrue.

Raises:

numpy.linalg.LinAlgError: Singular matrix

Ifself is singular.

See also

linalg.inv

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.]])

Previous topic

numpy.matrix.H

Next topic

numpy.matrix.A

  • © Copyright 2008-2009, The Scipy community.
  • Last updated on Jun 10, 2017.
  • Created usingSphinx 1.5.3.

[8]ページ先頭

©2009-2025 Movatter.jp