pub struct LuDecomposition { /* private fields */ }Expand description
LU decomposition with partial pivoting for a finite square f32 matrix.
Implementations§
Source§impl LuDecomposition
impl LuDecomposition
Sourcepub fn shape(&self) -> MatrixShape
pub fn shape(&self) -> MatrixShape
Returns the square decomposition shape.
Sourcepub fn swap_count(&self) -> usize
pub fn swap_count(&self) -> usize
Returns the number of pivot row swaps performed.
Sourcepub fn determinant(&self) -> Result<f32>
pub fn determinant(&self) -> Result<f32>
Computes the determinant from the upper-triangular diagonal and swap parity.
Sourcepub fn solve_vector(&self, b: &[f32]) -> Result<Vec<f32>>
pub fn solve_vector(&self, b: &[f32]) -> Result<Vec<f32>>
Solves A x = b for a finite vector b.
Sourcepub fn solve_matrix(&self, b: &F32MatrixView<'_>) -> Result<F32Matrix>
pub fn solve_matrix(&self, b: &F32MatrixView<'_>) -> Result<F32Matrix>
Solves A X = B for a finite matrix B.
Sourcepub fn lower_matrix(&self) -> Result<F32Matrix>
pub fn lower_matrix(&self) -> Result<F32Matrix>
Extracts the unit diagonal lower triangular factor.
Sourcepub fn upper_matrix(&self) -> Result<F32Matrix>
pub fn upper_matrix(&self) -> Result<F32Matrix>
Extracts the upper triangular factor.
Trait Implementations§
Source§impl Clone for LuDecomposition
impl Clone for LuDecomposition
Source§fn clone(&self) -> LuDecomposition
fn clone(&self) -> LuDecomposition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LuDecomposition
impl Debug for LuDecomposition
Source§impl PartialEq for LuDecomposition
impl PartialEq for LuDecomposition
Source§fn eq(&self, other: &LuDecomposition) -> bool
fn eq(&self, other: &LuDecomposition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LuDecomposition
Auto Trait Implementations§
impl Freeze for LuDecomposition
impl RefUnwindSafe for LuDecomposition
impl Send for LuDecomposition
impl Sync for LuDecomposition
impl Unpin for LuDecomposition
impl UnsafeUnpin for LuDecomposition
impl UnwindSafe for LuDecomposition
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