matlab - Error using sparse index into matrix is too large -


i ve got huge adjacency matrix in sparse representation. ve got 70.000 , 300.000 edges , structure of adjacency file nx3 matrix first 2 columns connected nodes the third column weight. trying read matlab. firstly import file, , secondly trying create sparse matrix spconvert:

adj1 = spconvert(gr); 

however receiving following error message:

??? error using ==> sparse index matrix large. error in ==> spconvert @ 53    s = sparse(d(:,1),d(:,2),d(:,3)); 

the biggest value of matrix 2.537020525000000e+09 , correspond node. idea wrong here?

if @ documentation of sparse tells that:

note:   if value in or j larger 2^31-1 32-bit platforms, or 2^48-1 on 64-bit platforms, sparse matrix cannot constructed.

this corresponds 2.15 e^09 maximum biggest value on 32-bit platform , therefore giving error message since biggest value larger this. solution propose rescaling weight values, instance log.


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -