import numpy as np
A = np.array([[1, -1, 3],
[-5, 3, 9],
[1, 0, -2]])
eigenvalue, featurevector = np.linalg.eig(A)
print(eigenvalue)
print(featurevector)
<<<
[-3.27491722 1. 4.27491722]
[[ 0.43401893 0.6882472 -0.33619158]
[ 0.83410767 0.6882472 0.94026843]
[-0.3404291 0.22941573 -0.05357705]]
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)