#linear-algebra #matrix #ndarray #linalg

linfa-linalg

Pure-Rust implementation of linear algebra routines for ndarray

2 unstable releases

0.2.0 Aug 29, 2024
0.1.0 Jun 5, 2022

#66 in Algorithms

Download history 7768/week @ 2024-08-23 6782/week @ 2024-08-30 8465/week @ 2024-09-06 9534/week @ 2024-09-13 8757/week @ 2024-09-20 9040/week @ 2024-09-27 10403/week @ 2024-10-04 9091/week @ 2024-10-11 10478/week @ 2024-10-18 9744/week @ 2024-10-25 7942/week @ 2024-11-01 8420/week @ 2024-11-08 11118/week @ 2024-11-15 10650/week @ 2024-11-22 9130/week @ 2024-11-29 6289/week @ 2024-12-06

38,726 downloads per month
Used in 79 crates (19 directly)

MIT/Apache

145KB
3K SLoC

linfa-linalg

Provides pure-Rust implementations of linear algebra routines for ndarray without depending on external LAPACK/BLAS libraries.

Eliminating BLAS dependencies

If this crate is being used as a BLAS-less replacement for ndarray-linalg, make sure to remove ndarray-linalg from the entire dependency tree of your crate. This is because ndarray-linalg, even as a transitive dependency, forces ndarray to be built with the blas feature, which forces all matrix multiplications to rely on a BLAS backend. This leads to linker errors if no BLAS backend is specified.

License

Dual-licensed to be compatible with the Rust project.

Licensed under the Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0 or the MIT license http://opensource.org/licenses/MIT, at your option. This file may not be copied, modified, or distributed except according to those terms.


lib.rs:

Provides pure-Rust implementations of linear algebra routines for ndarray without depending on external LAPACK/BLAS libraries.

Eliminating BLAS dependencies

If this crate is being used as a BLAS-less replacement for ndarray-linalg, make sure to remove ndarray-linalg from the entire dependency tree of your crate. This is because ndarray-linalg, even as a transitive dependency, forces ndarray to be built with the blas feature, which forces all matrix multiplications to rely on a BLAS backend. This leads to linker errors if no BLAS backend is specified.

Dependencies

~1.6–2.4MB
~48K SLoC