fork download
  1. # your code goes here
  2. import numpy as np
  3.  
  4. A = np.array([[2,4],
  5. [1,3],
  6. [0,0],
  7. [0,0]])
  8.  
  9. print(A)
  10.  
  11. print(np.linalg.eig(A.dot(A.T)))
Success #stdin #stdout 0.2s 28280KB
stdin
Standard input is empty
stdout
[[2 4]
 [1 3]
 [0 0]
 [0 0]]
(array([29.86606875,  0.13393125,  0.        ,  0.        ]), array([[ 0.81741556, -0.57604844,  0.        ,  0.        ],
       [ 0.57604844,  0.81741556,  0.        ,  0.        ],
       [ 0.        ,  0.        ,  1.        ,  0.        ],
       [ 0.        ,  0.        ,  0.        ,  1.        ]]))