Skip to main content

conspire/math/sparse/
mod.rs

1mod factor;
2mod matrix;
3mod solver;
4
5pub use factor::{CscLdl, CscLu};
6pub use matrix::CscMatrix;
7pub use solver::SparseSolver;
8
9use crate::math::assert::AssertionError;
10
11/// Possible errors for sparse data types.
12#[derive(Debug, PartialEq)]
13pub enum SparseError {
14    Singular,
15    Unsymmetric,
16}
17
18impl From<SparseError> for AssertionError {
19    fn from(error: SparseError) -> Self {
20        Self {
21            message: format!("{error:?}"),
22        }
23    }
24}