'Which one is the correspoding eigenvector? Rows or columns
Suppose I have following array. Are the rows or columns corresponding eigenvectors for eigenvalues. Sorry for easy and dumb question. But I just want to be absolutely certain.
import numpy as np
A = [45,37,42,35,39]
B = [38,31,26,28,33]
C = [10,15,17,21,12]
arrays= np.array([A,B,C])
covMatrix = np.cov(arrays,bias=True)print (covMatrix)
# Finding eigvenvalue and eigenvector
eigval, eigvec = np.linalg.eig(covMatrix)eigval = eigval.realprint(eigval,"\n", eigvec)
Solution 1:[1]
From documentation:
The normalized (unit “length”) eigenvectors, such that the column v[:,i] is the eigenvector corresponding to the eigenvalue w[i].
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | keramat |
