Armadillo sparse matrix multiplication extremely slow compared to MATLAB, how to speed up?

后端 未结 0 1761
野的像风
野的像风 2021-02-01 16:36

The following MATLAB codesnipet implement large scale matrix multiplications(2 sec /10 ):

tic
%comment:2 sec
for i =1:10
    G0 = K*sparse( diag(f>0) )*K\';
           


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题