I have a source and target matrix which I'm creating an adjacency matrix using sparse function.
W = sparse(w1(:,1),w1(:,2),1,n,n);
my n is approximately equal to 540,000 (this is a subset of the data I have). Creating the matrix itself is pretty computationally easy. However, I need to obtain eigenvalues of said matrix. More precisely
rho = max(abs(eigs(W)));
That one line of code takes forever. Looking a bit into this, I was led to believe that obtaining eigenvalues of a sparse matrix is computationally costly. I can not use a full command, say uint8(full(W)), since I end up exceeding maximum matrix size/ram capacity (130GB of memory). However, it appears that if format was uint8, I would be able to create said full adjacency matrix.
Any help is appreciated. What I think I need is one of the following
- An alternative way of constructing the adjacency matrix directly as a full uint8;
- A way to convert the adjacency matrix that I created to a full uint8; or
- An alternative way to calculate these eigenvalues