24 breaking releases

0.25.0 Jun 23, 2024
0.24.0 Jan 14, 2023
0.23.0 Oct 30, 2022
0.22.0 Apr 30, 2022
0.1.0 Aug 30, 2015

#1330 in Math

Download history 18/week @ 2024-07-29 26/week @ 2024-09-16 27/week @ 2024-09-23 10/week @ 2024-09-30 2/week @ 2024-10-07 172/week @ 2024-10-14 63/week @ 2024-10-21 2/week @ 2024-10-28 13/week @ 2024-11-04 37/week @ 2024-11-11

236 downloads per month
Used in 6 crates (5 directly)

MIT license

2MB
38K SLoC

nalgebra-lapack Version Status Doc

Rust library for linear algebra using nalgebra and LAPACK.

Documentation

Documentation is available here.

License

MIT

Cargo features to select lapack provider

Like the lapack crate from which this behavior is inherited, nalgebra-lapack uses cargo features to select which lapack provider (or implementation) is used. Command line arguments to cargo are the easiest way to do this, and the best provider depends on your particular system. In some cases, the providers can be further tuned with environment variables.

Below are given examples of how to invoke cargo build on two different systems using two different providers. The --no-default-features --features "provider" arguments will be consistent for other cargo commands.

Ubuntu

As tested on Ubuntu 12.04, do this to build the lapack package against the system installation of netlib without LAPACKE (note the E) or CBLAS:

sudo apt-get install gfortran libblas3gf liblapack3gf
export CARGO_FEATURE_SYSTEM_NETLIB=1
export CARGO_FEATURE_EXCLUDE_LAPACKE=1
export CARGO_FEATURE_EXCLUDE_CBLAS=1

export CARGO_FEATURES="--no-default-features --features netlib"
cargo build ${CARGO_FEATURES}

macOS

On macOS, do this to use Apple's Accelerate framework:

export CARGO_FEATURES="--no-default-features --features accelerate"
cargo build ${CARGO_FEATURES}

Contributors

This integration of LAPACK on nalgebra was initiated by Andrew Straw. It then became officially supported and integrated to the main nalgebra repository.

Dependencies

~70MB
~1M SLoC