math icon indicating copy to clipboard operation
math copied to clipboard

Cholesky Decomposition with less Precision

Open Marvin-Beckmann opened this issue 2 years ago • 0 comments

Description

Problem: The current implementation of the cholesky decomposition is far to slow as

  • We use a self-implementation
  • We are working with [Q]s which have a high precision at the cost of runtime

Therefore I looked at ways to overcome these issues

  • Using FLINTs function -> sadly not supported in FFI
  • Use simplify to get to a certain precision -> too slow...
  • [x] Use [f64] (double-precision) between conversions The latest of these options proved to be the best. As we can not access FLINTs function, I basically reformulated their implementation into Rust and used the same format.

for/ of Component.

Testing

  • [x] I added basic working examples (possibly in doc-comment)
  • Due to the precision - it does not work for large integers
  • [x] I triggered all possible errors in my test in every possible way
  • [x] I included tests for all reasonable edge cases

Checklist:

  • [x] I have performed a self-review of my own code
    • [x] The code provides good readability and maintainability s.t. it fulfills best practices like talking code, modularity, ...
      • [x] The chosen implementation is not more complex than it has to be
    • [x] My code should work as intended and no side effects occur (e.g. memory leaks)
    • [x] The doc comments fit our style guide
    • [x] I have credited related sources if needed

Marvin-Beckmann avatar Sep 25 '24 12:09 Marvin-Beckmann