I have a sparse matrix S. I perform the following operation
D1 = diag(sum(S,2)), basically forming a diagonal matrix. Now I need to execute (D1)^(-0.5), but I get the error "Error using mpower, use full (x) ^ full (y)"
Converting to full power will defeat the purpose of using a sparse matrix.
Any advice would be very helpful.
source
share