forum.alglib.net http://forum.alglib.net/ |
|
Slow sparse solver http://forum.alglib.net/viewtopic.php?f=2&t=4364 |
Page 1 of 1 |
Author: | kyraz66 [ Sun Nov 22, 2020 3:32 am ] |
Post subject: | Slow sparse solver |
Hello, I am solving a sparse linear system Ku = B using alglib::sparsesolve in C++, the matrix is around 1e4x1e4 in size and 99.9% empty. However the computation time on my personal computer is around 1 minute, which looks very high for such matrix (I am running in sequential with commercial version of Alglib, the matrix is in CSR format). I was wondering if this computation time was normal or if I misunderstood something. Code: alglib::sparsematrix K;
alglib::real_1d_array B; ...... int nLen = B.length() alglib::real_1d_array u; u.setlength(nLen); alglib::sparsesolverreport rep; alglib::sparsesolve(K,nLen,B,u,rep); |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |