1 unstable release
0.1.0 | Sep 22, 2023 |
---|
#809 in Science
Used in 5 crates
9.5MB
618 lines
spsolve
This crate defines a Solver
trait for solving sparse systems of linear
equations of the form:
Ax = b
The trait is implemented using various open source libraries. They can be enabled using their associated feature. The following solvers are currently supported:
- CSparse (C, LGPL)
- KLU (C, LGPL)
- RLU (Rust, BSD)
- LUFact (Fortran, Apache/MIT)
- RSparse (Rust, MIT (LGPL?))
A benchmark for comparing solver performance is included.
Test matrix data can be accessed by enabling the matrix
feature.
Solvers can be profiled using cpuprofiler
and pprof.
License
Licensed under either of the
- Apache License, Version 2.0 (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0) or
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
at your option.
lib.rs
:
Defines a generic trait for factorizing and solving sparse systems of linear equations.
Dependencies
~0.1–17MB
~256K SLoC