pub struct LuWork<T> { /* private fields */ }Expand description
Buffers that LU factorizations reuse. A run of calls on matrices of one size allocates only in its first call.
Implementations§
Source§impl<T: Factor> LuWork<T>
impl<T: Factor> LuWork<T>
Sourcepub fn factor(&mut self, a: &[T], n: usize) -> LuRef<'_, T>
pub fn factor(&mut self, a: &[T], n: usize) -> LuRef<'_, T>
lu of the n×n matrix a, held in these buffers until the next call.
Sourcepub fn solve(&mut self, a: &[T], b: &[T], size: [usize; 2], k: usize) -> Vec<T>
pub fn solve(&mut self, a: &[T], b: &[T], size: [usize; 2], k: usize) -> Vec<T>
solve for the matrix a of size [m, n] and the m×k matrix b, using these buffers.
Sourcepub fn pinv_into(&mut self, a: &[T], size: [usize; 2], out: &mut [T])
pub fn pinv_into(&mut self, a: &[T], size: [usize; 2], out: &mut [T])
pinv of the matrix a of size [m, n], written into out, which holds n×m items.
Trait Implementations§
Auto Trait Implementations§
impl<T> Forget for LuWork<T>
impl<T> Freeze for LuWork<T>
impl<T> RefUnwindSafe for LuWork<T>
impl<T> Send for LuWork<T>
impl<T> Sync for LuWork<T>
impl<T> Unpin for LuWork<T>
impl<T> UnsafeUnpin for LuWork<T>
impl<T> UnwindSafe for LuWork<T>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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