Python Inverse of a Matrix

后端 未结 7 1120
遥遥无期
遥遥无期 2020-12-04 06:48

How do I get the inverse of a matrix in python? I\'ve implemented it myself, but it\'s pure python, and I suspect there are faster modules out there to do it.

7条回答
  •  不知归路
    2020-12-04 07:23

    If you hate numpy, get out RPy and your local copy of R, and use it instead.

    (I would also echo to make you you really need to invert the matrix. In R, for example, linalg.solve and the solve() function don't actually do a full inversion, since it is unnecessary.)

提交回复
热议问题