Matrix Decomposition Methods and performance comparison #638
Replies: 3 comments 3 replies
-
|
All those decompositions, except LDL, exist in 2 version – dense and raw. If you modify the factory methods you can control which one you get. Maybe you want to make sure you're getting the best one. (If you don't, let me know.) In text books the stated relative performance of different decomposition algorithms are mostly based on counting the number of mathematical operations (or possibly array read/write operations). In actual (Java) implementations performance is greatly affected by things like cache locality and if auto-vectorisation happens or not. I believe in RawLU, the implementation details worked out particularly well, and that's what you see in your numbers. |
Beta Was this translation helpful? Give feedback.
-
|
The limits function is what I was missing. Works great. Thanks |
Beta Was this translation helpful? Give feedback.
-
|
No need to close discussions |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have been running some performance tests against the use of different matrix decomposition methods available. I am using java20 and the ojalgo source downloaded on Oct 7, 2025.
My matrix is over 600x600 in size and is always positive definite and symmetric. Not tested, but is supposed to be.
I'm wondering if there any tips on usage to improve performance. I expected Cholesky method to be better than LU, but I didn't get those results. Any suggestions welcome.
SolverOptions.java
Beta Was this translation helpful? Give feedback.
All reactions