Answers for "eigen decomposition python"

3

eigenvectors python

In [1]: import numpy as np

In [2]: K=np.random.normal(size=(2,2))

In [3]: eigenvalues, eigenvectors = np.linalg.eig(K)

In [4]: eigenvectors
Out[4]: 
array([[ 0.83022467+0.j        ,  0.83022467+0.j        ],
       [ 0.09133956+0.54989461j,  0.09133956-0.54989461j]])

In [5]: eigenvectors.shape
Out[5]: (2, 2)
Posted by: Guest on February-20-2021

Code answers related to "eigen decomposition python"

Python Answers by Framework

Browse Popular Code Answers by Language