#![cfg_attr(not(feature = "std"), no_std)]
extern crate alloc;
extern crate core;
mod algorithms;
mod errors;
mod extensions;
mod traits;
mod types;
#[doc(hidden)]
pub mod utils_tests;
pub use crate::errors::linear_error::{LinearError, LinearErrorEnum};
pub use crate::traits::matrix_build::MatrixBuild;
pub use crate::traits::matrix_view::MatrixView;
pub use crate::traits::row_ops::RowOps;
pub use crate::types::csr_matrix::CsrMatrix;
pub use crate::types::dense_matrix::DenseMatrix;
pub use crate::types::dense_vector::DenseVector;
pub use crate::types::packed_gf2::PackedGf2;
pub use crate::types::packed_gf2_vector::PackedGf2Vector;
pub use crate::algorithms::elimination::{
Reduced, determinant, image_basis, kernel_basis, rank, rank_stable, rref, rref_stable,
};
pub use crate::algorithms::cholesky::{cholesky, solve_least_squares};
pub use crate::algorithms::solve::{Lu, inverse, solve, solve_lower, solve_upper};
pub use crate::algorithms::gf2::{image_basis_gf2, kernel_basis_gf2, rank_gf2};
pub use crate::algorithms::integer::{determinant_exact, rank_exact};
pub use crate::algorithms::decomposition::{
EigenPair, QrFactors, SvdFactors, SvdReal, Truncation, eigen_hermitian, qr, singular_values,
svd, svd_sorted, svd_truncated,
};
pub use crate::algorithms::norms::{
matrix_norm_frobenius, matrix_norm_inf, matrix_norm_l1, vector_norm_inf, vector_norm_l1,
vector_norm_l2, vector_norm_sq,
};
pub use crate::algorithms::cg::{
CgFailure, cg_solve, cg_solve_preconditioned, cg_solve_preconditioned_from,
};
pub use crate::extensions::conversions::{
csr_i8_to_dense_i64, csr_to_dense, csr_to_packed_gf2_mod2, csr_to_packed_gf2_strict,
dense_gf2_to_packed, dense_to_csr, packed_to_dense_gf2,
};
pub use crate::extensions::hkt::csr_matrix_witness::CsrMatrixWitness;
pub use crate::extensions::hkt::dense_matrix_witness::DenseMatrixWitness;
pub use crate::extensions::hkt::dense_vector_witness::DenseVectorWitness;