import numpy as np
import numpy.linalg
if __name__ == '__main__':
m = np.matrix([[1, 2, 3], [5, 6, 7], [9, 10, 11]])
print(m)
print(m.T)
print(m.I)
v = np.matrix([[2], [3], [4]])
print(v)
print(m * v)
print(numpy.linalg.det(m))
print(numpy.linalg.eigvals(m))
print(numpy.linalg.solve(m, v))
python 矩阵计算
最新推荐文章于 2024-11-13 17:24:18 发布