pub struct SparseLu { /* private fields */ }Implementations§
Source§impl SparseLu
impl SparseLu
Sourcepub fn factor_csr(
n: usize,
offsets: &[usize],
columns: &[usize],
values: &[f64],
options: SparseLuOptions,
) -> Result<Self, SolverError>
pub fn factor_csr( n: usize, offsets: &[usize], columns: &[usize], values: &[f64], options: SparseLuOptions, ) -> Result<Self, SolverError>
Borrow zero-based CSR. Unsorted/duplicate column entries are summed; explicit zeros are removed. offsets must contain n+1 entries and start at zero.
pub fn order(&self) -> usize
pub fn factor_nonzeros(&self) -> usize
pub fn pivots(&self) -> &[usize]
Sourcepub fn packed_row(&self, i: usize) -> Option<&BTreeMap<usize, f64>>
pub fn packed_row(&self, i: usize) -> Option<&BTreeMap<usize, f64>>
Exposes packed factors by sparse row: strict lower L, diagonal/upper U; unit diagonal of L is implicit. No n*n output allocation.
pub fn solve(&self, b: MatrixView<'_>) -> Result<Matrix, SolverError>
pub fn solve_transpose(&self, b: MatrixView<'_>) -> Result<Matrix, SolverError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SparseLu
impl RefUnwindSafe for SparseLu
impl Send for SparseLu
impl Sync for SparseLu
impl Unpin for SparseLu
impl UnsafeUnpin for SparseLu
impl UnwindSafe for SparseLu
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more