1. 程式人生 > >python 矩陣求逆

python 矩陣求逆

mat = np.array(
    [[ 65.481, 128.553, 24.966 ],
     [-37.797, -74.203, 112.0  ],
     [  112.0, -93.786, -18.214]])
mat_inv = np.linalg.inv(mat)#矩陣求逆
offset = np.array([16, 128, 128])