c++ - how to effectively allocate memory for 20000*20000 matrix? -


my code follows pca algorithm in order find eigenvectors , eigenvalues of 20000 *35 matrix. in order find eigenvector, need find covariance matrix, on calculation of order of 20000*20000.

how process such huge matrix? using opencv code

i believe question ill formed; if doing pca, 20000 * 35 matrix has 20000 observations on 35 variables (having 35 observations of 20000 variables not of use, i'm guessing it's not case).

if such case, covariance matrix has size 35 x 35, not 20k x 20k.

you can compute eigenpairs 35x35 matrix using qr algorithm, jacobi method or other eigenvalue/eigenvector approximating algorithm (many specific real symmetric matrices, case of covariance matrix).


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -