pub struct SparseQrResult<F> {
pub householder_v: Vec<Vec<F>>,
pub tau: Vec<F>,
pub r_data: Vec<Vec<F>>,
pub col_perm: Vec<usize>,
pub m: usize,
pub n: usize,
pub rank: usize,
}Expand description
Result of sparse QR factorization.
Stores the factorization in implicit Householder form:
- Householder vectors
v_kand scalarstau_kdefine Q = I - V * T * V^T - R is stored as a dense upper triangular matrix
- Column permutation for pivoted QR
Fields§
§householder_v: Vec<Vec<F>>Householder vectors, stored column-wise.
householder_v[k] is the k-th Householder vector (length m).
tau: Vec<F>Householder scalars tau[k] = 2 / (v^T v).
r_data: Vec<Vec<F>>R factor stored as dense row-major (min(m,n) x n).
col_perm: Vec<usize>Column permutation (P): r_data columns correspond to original columns col_perm[j].
m: usizeNumber of rows (m).
n: usizeNumber of columns (n).
rank: usizeNumerical rank determined during factorization.
Trait Implementations§
Source§impl<F: Clone> Clone for SparseQrResult<F>
impl<F: Clone> Clone for SparseQrResult<F>
Source§fn clone(&self) -> SparseQrResult<F>
fn clone(&self) -> SparseQrResult<F>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<F> Freeze for SparseQrResult<F>
impl<F> RefUnwindSafe for SparseQrResult<F>where
F: RefUnwindSafe,
impl<F> Send for SparseQrResult<F>where
F: Send,
impl<F> Sync for SparseQrResult<F>where
F: Sync,
impl<F> Unpin for SparseQrResult<F>where
F: Unpin,
impl<F> UnsafeUnpin for SparseQrResult<F>
impl<F> UnwindSafe for SparseQrResult<F>where
F: UnwindSafe,
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> 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