Comments (4)
I've recently been studying iterative solvers so this is on my to-do list for the near future
from faer-rs.
Hi,
I am not related to the faer crate but I am curious.
Was your 4096x4096 matrix dense in your example?
Spectra seems to be a sparse eigensolver. I think Arnoldi iteration eigensolvers in general are much more suited to sparse eigenproblems. Also the rule of thumb for Arnoldi iteration is that you need a Krylov subspace 2 times larger than the number of eigenpairs wanted so it is very ill suited to computing all the eigenpairs.
May I suggest taking a look at power iteration and subspace iteration if you want the dominant or the few largest eigenpairs? Otherwise, I think for general dense matrices it is typically not faster to extract less than all of the eigenpairs. I am curious about what would be the faer approach though.
from faer-rs.
Hi,
I am not related to the faer crate but I am curious.
Was your 4096x4096 matrix dense in your example? Spectra seems to be a sparse eigensolver. I think Arnoldi iteration eigensolvers in general are much more suited to sparse eigenproblems. Also the rule of thumb for Arnoldi iteration is that you need a Krylov subspace 2 times larger than the number of eigenpairs wanted so it is very ill suited to computing all the eigenpairs.
May I suggest taking a look at power iteration and subspace iteration if you want the dominant or the few largest eigenpairs? Otherwise, I think for general dense matrices it is typically not faster to extract less than all of the eigenpairs. I am curious about what would be the faer approach though.
Spectra does have methods for dense matrices as well (https://spectralib.org/doc/classspectra_1_1geneigssolver), which I have been using in my example benchmarks (the 4096x4096 matrices have all been dense).
Spectra is in fact not well suited for finding all the eigenvalues, but in my applications I only need the leading eigenpairs, hence this issue, asking for a way to get those using faer.
I've recently been studying iterative solvers so this is on my to-do list for the near future
Awesome! Btw, if such a method would also calculate the eigenvectors, that would be even more awesome :)
from faer-rs.
Hey there, it's me again.
Did you have time yet to look into this?
If not, is there a way I can help out with it? If you point me towards some specific algorithm(s), which would suite this usecase in faer
and point me towards where in the repo such a method would make most sense, I could see if I can write up a draft for a PR to work with.
from faer-rs.
Related Issues (20)
- Some links in the docs need to be fixed HOT 1
- incomplete lu and llt factorization of sparse matrices for preconditioning of krylov subspace methods HOT 1
- faer 0.17 doesn't compile when default features are disabled HOT 4
- allocation free dot product HOT 2
- support integer arithmetic HOT 11
- Scalar - Vector / Scalar - Matrix Multiplication HOT 3
- Consider `rust-gpu` when deciding on GPU support HOT 3
- `selfadjoint_eigendecomposition` sometimes produces incorrect results HOT 2
- Add a "ones" method for initializing a matrix filled with ones. HOT 2
- Some Improvements for Benchmark Page HOT 3
- Support for loading from NPZ files that is used for scipy sparse matrices
- How to convert a faer Mat into a Rust normal array? HOT 1
- After update 0.14.1 -> 0.15.0 result of matmul not unique HOT 6
- Incorrect selfadjoint_eigendecomposition for some matrices HOT 4
- benchmarks for sparse decompositions HOT 2
- panic in selfajoint eigenvalue decomposition HOT 4
- Cannot create a `SymbolicSparseRowMat` with `SymbolicSparseRowMat::new_checked()`
- Clone instead of Copy bound for `faer::Entity`? HOT 1
- Support integer Sparse Matrix HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from faer-rs.