Crates.io | suitesparse_sys |
lib.rs | suitesparse_sys |
version | 0.1.4 |
source | src |
created_at | 2023-09-09 09:04:18.654145 |
updated_at | 2024-10-02 15:54:57.403354 |
description | sys crate for suitesparse library |
homepage | |
repository | https://github.com/martinjrobins/suitesparse-sys |
max_upload_size | |
id | 968022 |
size | 61,338,730 |
This crate provides bindings to the SuiteSparse library. By default it expects you to have SuiteSparse installed on your system.
It will try to find these, but if it fails, then you can manually set the SUITESPARSE_LIBRARY_DIR
and SUITESPARSE_INCLUDE_DIR
environment variables set to the appropriate paths.
E.g. on Ubuntu you might have:
export set SUITESPARSE_LIBRARY_DIR=/usr/lib/x86_64-linux-gnu
export set SUITESPARSE_INCLUDE_DIR=/usr/include/suitesparse
cargo test
If you wish to build SuiteSparse from source, you can enable the build_vendor
feature, which will build the SuiteSparse library from the vendor
submodule in this repository (this is currently version v7.7.0 of SuiteSparse). If you wish to use the build_vendor
feature, you will need to ensure you have all the required dependencies installed on your system corresponding to the libraries you wish to build (see list below).
The possible features are:
build_vendor
: Build the SuiteSparse library from source (currently version v7.7.0)build_static_libraries
: Build the SuiteSparse library as static librariesopenmp
: Enable OpenMP support in the SuiteSparse libraryEach library in the SuiteSparse library is a separate feature. The features are:
mongoose
: Bindings to the Mongoose library.btf
: Bindings to the BTF library.amd
: Bindings to the Approximate Minimum Degree library (AMD).camd
: Bindings to the Constrained Approximate Minimum Degree library (CAMD).ccolamd
: Bindings to the Constrained Column Approximate Minimum Degree library (CCOLAMD).colamd
: Bindings to the Column Approximate Minimum Degree library (COLAMD).cholmod
: Bindings to the Cholesky Modified library (CHOLMOD).cxsparse
: Bindings to the CXSparse library.ldl
: Bindings to the LDL library.klu
: Bindings to the KLU library.umfpack
: Bindings to the UMFPACK library.paru
: Bindings to the ParU library.rbio
: Bindings to the RBio library.spqr
: Bindings to the SPQR library.spex
: Bindings to the SPEx library.graphblas
: Bindings to the GraphBLAS library.lagraph
: Bindings to the LA-Graph library.The default feature list is:
klu
, amd
, colamd
, btf
]