pub struct Lu { /* private fields */ }Expand description
LU factorisation with partial pivoting of a square matrix.
Implementations§
Source§impl Lu
impl Lu
Sourcepub fn new(a: MatRef<'_, c64>) -> Self
pub fn new(a: MatRef<'_, c64>) -> Self
LU factorisation of the square matrix a (panics otherwise). A singular matrix is
factorised all the same: its zero pivots show in Self::pivot_range.
Sourcepub fn pivot_range(&self) -> (f64, f64)
pub fn pivot_range(&self) -> (f64, f64)
Smallest and largest modulus of the pivots (the diagonal of U); (∞, 0) for an empty
matrix.
Sourcepub fn solve_in_place(&self, b: MatMut<'_, c64>)
pub fn solve_in_place(&self, b: MatMut<'_, c64>)
b ← a⁻¹ b.
Sourcepub fn solve_adjoint_in_place(&self, b: MatMut<'_, c64>)
pub fn solve_adjoint_in_place(&self, b: MatMut<'_, c64>)
b ← a⁻† b.
Sourcepub fn inverse_condition_1(&self, norm_1: f64) -> f64
pub fn inverse_condition_1(&self, norm_1: f64) -> f64
Estimate of the reciprocal condition number 1 / (‖a‖₁ ‖a⁻¹‖₁), given ‖a‖₁: 0 for a
singular matrix. As LAPACK zgecon, ‖a⁻¹‖₁ comes from a few solves with a and a†
(Hager’s method with Higham’s refinements, zlacn2). The 2-norm ratio σ_min / σ_max is
within a factor n of it.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more