nalgebra/nalgebra-lapack
Avi Weinstock 52aac8b975 Add inlined_clone to Scalar, and relax bounds from `Scalar + Copy` to `Scalar + Clone` nearly everywhere.
The various nalgebra-lapack FooScalars are still Copy because they make use of uninitialized memory.
nalgebgra-glm Number still uses Copy because upstream `approx` requires it.
2020-03-02 12:45:37 +01:00
..
benches Run rustfmt. 2018-11-06 18:32:20 +01:00
src Add inlined_clone to Scalar, and relax bounds from `Scalar + Copy` to `Scalar + Clone` nearly everywhere. 2020-03-02 12:45:37 +01:00
tests 2018 edition. 2019-03-23 14:33:47 +01:00
CHANGELOG.md Add nalgebra-lapack as a crate on this workspace. 2017-08-15 19:07:18 +02:00
Cargo.toml Release nalgebra 0.19.0. 2019-10-28 14:15:03 +01:00
LICENSE.txt Add nalgebra-lapack as a crate on this workspace. 2017-08-15 19:07:18 +02:00
Makefile Add nalgebra-lapack as a crate on this workspace. 2017-08-15 19:07:18 +02:00
README.md HTTPS All The Things (#608) 2019-08-27 22:05:28 +02:00

README.md

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.