pub struct QrRef<'a, I: Index, T> { /* private fields */ }Expand description
sparse $QR$ factorization wrapper
Implementations§
Source§impl<'a, I: Index, T> QrRef<'a, I, T>
impl<'a, I: Index, T> QrRef<'a, I, T>
Sourcepub unsafe fn new_unchecked(
symbolic: &'a SymbolicQr<I>,
indices: &'a [I],
val: &'a [T],
) -> Self
pub unsafe fn new_unchecked( symbolic: &'a SymbolicQr<I>, indices: &'a [I], val: &'a [T], ) -> Self
creates a $QR$ decomposition reference from its symbolic and numerical components
§safety
the indices must be filled by a previous call to SymbolicQr::factorize_numeric_qr with
the right parameters
Sourcepub fn symbolic(self) -> &'a SymbolicQr<I>
pub fn symbolic(self) -> &'a SymbolicQr<I>
returns the symbolic structure of the $QR$ factorization.
Sourcepub fn solve_in_place_with_conj(
self,
conj: Conj,
rhs: MatMut<'_, T>,
par: Par,
stack: &mut MemStack,
)where
T: ComplexField,
pub fn solve_in_place_with_conj(
self,
conj: Conj,
rhs: MatMut<'_, T>,
par: Par,
stack: &mut MemStack,
)where
T: ComplexField,
solves the equation $A x = \text{rhs}$ in the sense of least squares, implicitly conjugating $A$ if needed
work is a temporary workspace with the same dimensions as rhs
Trait Implementations§
impl<I: Index, T> Copy for QrRef<'_, I, T>
Auto Trait Implementations§
impl<'a, I, T> Freeze for QrRef<'a, I, T>
impl<'a, I, T> RefUnwindSafe for QrRef<'a, I, T>where
I: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, I, T> Send for QrRef<'a, I, T>where
T: Sync,
impl<'a, I, T> Sync for QrRef<'a, I, T>where
T: Sync,
impl<'a, I, T> Unpin for QrRef<'a, I, T>
impl<'a, I, T> UnwindSafe for QrRef<'a, I, T>where
I: RefUnwindSafe,
T: RefUnwindSafe,
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,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
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