pub struct CrossFactors<T: Scalar> {
pub pivot: DenseOwnedMatrix<T>,
pub pivot_cols: DenseOwnedMatrix<T>,
pub pivot_rows: DenseOwnedMatrix<T>,
}Expand description
Dense factors derived from a pivot selection.
Contains the pivot block A[I, J], full pivot columns A[:, J], and
full pivot rows A[I, :]. These are used to reconstruct the left and
right CI factors for the cross interpolation approximation
A ~ A[:, J] * A[I, J]^{-1} * A[I, :].
Fields§
§pivot: DenseOwnedMatrix<T>Pivot block A[I, J].
pivot_cols: DenseOwnedMatrix<T>Columns through selected pivot columns A[:, J].
pivot_rows: DenseOwnedMatrix<T>Rows through selected pivot rows A[I, :].
Implementations§
Source§impl<T: Scalar> CrossFactors<T>
impl<T: Scalar> CrossFactors<T>
Sourcepub fn gather<S: CandidateMatrixSource<T>>(
source: &S,
rows: &[usize],
cols: &[usize],
) -> DenseOwnedMatrix<T>
pub fn gather<S: CandidateMatrixSource<T>>( source: &S, rows: &[usize], cols: &[usize], ) -> DenseOwnedMatrix<T>
Gather a dense block from a source.
Sourcepub fn from_source<S: CandidateMatrixSource<T>>(
source: &S,
selection: &PivotSelectionCore,
) -> Result<Self>
pub fn from_source<S: CandidateMatrixSource<T>>( source: &S, selection: &PivotSelectionCore, ) -> Result<Self>
Reconstruct factors from a source and pivot-only selection.
Sourcepub fn pivot_inverse(&self) -> Result<DenseOwnedMatrix<T>>
pub fn pivot_inverse(&self) -> Result<DenseOwnedMatrix<T>>
Invert the pivot block.
Sourcepub fn cols_times_pivot_inv(&self) -> Result<DenseOwnedMatrix<T>>
pub fn cols_times_pivot_inv(&self) -> Result<DenseOwnedMatrix<T>>
Form A[:, J] * A[I, J]^{-1}.
Sourcepub fn pivot_inv_times_rows(&self) -> Result<DenseOwnedMatrix<T>>
pub fn pivot_inv_times_rows(&self) -> Result<DenseOwnedMatrix<T>>
Form A[I, J]^{-1} * A[I, :].
Trait Implementations§
Source§impl<T: Clone + Scalar> Clone for CrossFactors<T>
impl<T: Clone + Scalar> Clone for CrossFactors<T>
Source§fn clone(&self) -> CrossFactors<T>
fn clone(&self) -> CrossFactors<T>
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<T> Freeze for CrossFactors<T>
impl<T> RefUnwindSafe for CrossFactors<T>where
T: RefUnwindSafe,
impl<T> Send for CrossFactors<T>
impl<T> Sync for CrossFactors<T>
impl<T> Unpin for CrossFactors<T>where
T: Unpin,
impl<T> UnsafeUnpin for CrossFactors<T>
impl<T> UnwindSafe for CrossFactors<T>where
T: UnwindSafe,
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> Twhere
Self: Distribution<T>,
§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> Twhere
Self: Distribution<T>,
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