Registered Member
|
I ran the following code for sparseLU:
The code in matlab inv(A)*b took about 50 microseconds The code in Eigen took 185 micro seconds! Is there a way I can speed up sparseLU ? Note I only timed the part in which the LU system is actually solved and displayed, the same as I did in matlab. |
Registered Member
|
If you want to speed up the solver in this example, you could replace the sparse LU by a normal LU. Sparse algorithms will not perform well on 5x5 matrices where about half the entries are nonzero. If you are interested in larger matrices, I suggest you time them first and take it from there.
|
Registered Member
|
Correct on a 1000 x 1000 matrix Eigen is 10 times faster than Matlab.
|
Registered users: Baidu [Spider], Bing [Bot], Google [Bot], Yahoo [Bot]