def perform_pca(A):
<EOL>M = (A-numpy.mean(A.T, axis=<NUM_LIT:1>)).T<EOL>return numpy.linalg.eig(numpy.cov(M))<EOL>
Computes eigenvalues and eigenvectors of covariance matrix of A.
The rows of a correspond to observations, the columns to variables.