numpy笔记三(矩阵)

import numpy as np import matplotlib.pyplot as plt #字符串建立矩阵 mat = np.mat("1 2 3; 4 5 6; 7 8 9") print(mat) #T属性转置矩阵 print(mat.T) #I属性得到逆矩阵 print(mat.I) #使用数组建立矩阵 a = np.array([[-2,1],[4,-3]]) mat = n
相关文章
相关标签/搜索