[package] name = "spsolve" version = "0.1.0" description = "Solve sparse systems of linear equations" license = "MIT OR Apache-2.0" repository = "https://github.com/rwl/spsolve" edition = "2021" exclude = ["matrix/powers/ACTIVSg70k*"] [dependencies] anyhow = "1" num-traits = { version = "0.2", optional = true } sprs = { version = "0.11.1", optional = true } num-complex = { version = "0.4", optional = true } rlu = { version = "0.4", optional = true } amd = { version = "0.2", optional = true } lufact = { version = "0.1.2", optional = true } suitesparse_sys = { version = "0.1", optional = true } rsparse = { version = "0.2", optional = true } cpuprofiler = { version = "0.0.4", optional = true } [dev-dependencies] num-traits = "0.2" criterion = "0.5" approx = "0.5.1" sparsetools = { path = "../sparsetools" } [features] matrix = ["num-traits", "sprs", "num-complex"] rlu = ["dep:amd", "dep:rlu", "num-traits"] lufact = ["num-traits", "suitesparse_sys/amd", "dep:lufact"] klu = ["suitesparse_sys/klu"] csparse = ["num-traits", "suitesparse_sys/cxsparse"] default = [] [[bench]] name = "solve_bench" harness = false required-features = ["matrix"] [[example]] name = "solve" required-features = ["rlu", "lufact", "klu"] [[bin]] name = "spsolve" required-features = ["matrix", "rlu"]