Numpy inverts a non-invertible matrix

前端 未结 2 1086
隐瞒了意图╮
隐瞒了意图╮ 2020-12-19 13:52

My friend and I executed this lines of code in Python 2 and Python 3:

import numpy as np  
mat = np.array([[1,0,0],[-1,3,3],[1,2,2]         


        
2条回答
  •  遥遥无期
    2020-12-19 14:53

    Rank=2 means the matrix is not invertible. For a 3x3 matrix to be invertible, its rank must be 3.

提交回复
热议问题