I want to calculate the correlation for a matrix, but stopped by program since the memory is not able to fit.
M = matrix(0, length(user), length(mat))
when I run this line,I got a message
Error: cannot allocate vector of size 146487.5 Gb
FYI
length(user) = 6728367
length(mat) = 2922138
so how much space a 0 value matrix cell need to occupy?
And further more, how to deal with the matrix calculation based on the sparse matrix? Is there a package? or I can do a multiple core calculation?