1In [1]: import numpy as np
2
3In [2]: K=np.random.normal(size=(2,2))
4
5In [3]: eigenvalues, eigenvectors = np.linalg.eig(K)
6
7In [4]: eigenvectors
8Out[4]:
9array([[ 0.83022467+0.j , 0.83022467+0.j ],
10 [ 0.09133956+0.54989461j, 0.09133956-0.54989461j]])
11
12In [5]: eigenvectors.shape
13Out[5]: (2, 2)
14