Numpy - Modal matrix and diagonal Eigenvalues
问题 I wrote a simple Linear Algebra code in Python Numpy to calculate the Diagonal of EigenValues by calculating $M^{-1}.A.M$ (M is the Modal Matrix) and it's working strange. Here's the Code : import numpy as np array = np.arange(16) array = array.reshape(4, -1) print(array) [[ 0 1 2 3] [ 4 5 6 7] [ 8 9 10 11] [12 13 14 15]] eigenvalues, eigenvectors = np.linalg.eig(array) print eigenvalues [ 3.24642492e+01 -2.46424920e+00 1.92979794e-15 -4.09576009e-16] print eigenvectors [[-0.11417645 -0