pub struct Lu { /* private fields */ }Expand description
Reusable square LU with partial ROW pivoting. Convention: P * A = L * U.
pivots[k] is the row interchanged with row k during elimination. The factors
own a copy; the caller’s input is never modified. Not a blocked BLAS kernel.
Implementations§
Source§impl Lu
impl Lu
pub fn factor( a: MatrixView<'_>, tolerance: Tolerance, ) -> Result<Self, SolverError>
pub fn order(&self) -> usize
pub fn pivots(&self) -> &[usize]
pub fn packed(&self) -> &Matrix
pub fn lower(&self) -> Result<Matrix, SolverError>
pub fn upper(&self) -> Result<Matrix, SolverError>
Sourcepub fn solve(&self, b: MatrixView<'_>) -> Result<Matrix, SolverError>
pub fn solve(&self, b: MatrixView<'_>) -> Result<Matrix, SolverError>
Solve all RHS columns, reusing the factorization. RHS is not modified.
Sourcepub fn solve_transpose(&self, b: MatrixView<'_>) -> Result<Matrix, SolverError>
pub fn solve_transpose(&self, b: MatrixView<'_>) -> Result<Matrix, SolverError>
Solve A^T X = B without refactorizing A.
Sourcepub fn inverse(&self) -> Result<Matrix, SolverError>
pub fn inverse(&self) -> Result<Matrix, SolverError>
Prefer solve(B) to explicitly forming an inverse for linear systems.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Lu
impl RefUnwindSafe for Lu
impl Send for Lu
impl Sync for Lu
impl Unpin for Lu
impl UnsafeUnpin for Lu
impl UnwindSafe for Lu
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