sarah-quinones / faer-rs

Linear algebra foundation for the Rust programming language
https://faer-rs.github.io
MIT License
1.82k stars 61 forks source link

High-level api for computing eigenvalues and eigenvectors from square matrices? #109

Closed tomouellette closed 7 months ago

tomouellette commented 7 months ago

Hi @sarah-ek,

Is there any plans on adding any high-level APIs for computing eigenvectors and eigenvalues of square, but not necessarily symmetric, matrices?

I really like the ergonomics of your library but it would be nice to just have a functional, simple API for providing matrices and getting out eigenvalues and their associated eigenvectors without having to hand roll some form of iterative/inverse iteration method in each new crate.

sarah-quinones commented 7 months ago

https://docs.rs/faer/latest/faer/mat/struct.Mat.html#method.eigendecomposition

https://docs.rs/faer/latest/faer/mat/struct.Mat.html#method.complex_eigendecomposition

there's these two functions for real and complex matrices. are they not suitable for your use case?

tomouellette commented 7 months ago

Hi @sarah-ek,

Thanks for the pointer - I must of missed this. The crate has really evolved since I last looked around, it's very impressive! The eigendecomposition and the partial LU pivot are working great for my use case after testing, I'll be switching out the nalgebra components for faer now.

I'll close this issue.