pub struct MatrixLuciRowInterpolation<T> {
pub rows: Vec<usize>,
pub interpolation: Matrix<T>,
pub pivot_magnitudes: Vec<f64>,
}Expand description
Row interpolation A ~= interpolation * A[rows, :] selected by MatrixLUCI.
Unlike MatrixLuciFactors, this does not build an unused right factor.
§Examples
use tensor4all_core::matrix_luci_row_interpolation_owned_in;
use tensor4all_tensorbackend::{default_cpu_execution_context, Matrix};
let a = Matrix::from_col_major_vec(2, 1, vec![2.0_f64, 4.0]);
let id = matrix_luci_row_interpolation_owned_in(a, None, &default_cpu_execution_context())?;
assert_eq!(id.rows, vec![1]);
assert_eq!(id.interpolation.as_col_major_slice(), &[0.5, 1.0]);Fields§
§rows: Vec<usize>Original matrix row indices, in pivot order.
interpolation: Matrix<T>Row weights, with an identity submatrix at the selected rows.
pivot_magnitudes: Vec<f64>Accepted LU pivot magnitudes followed by the maximum absolute entry of the remaining Schur complement. This is a local matrix diagnostic.
Trait Implementations§
Source§impl<T: Clone> Clone for MatrixLuciRowInterpolation<T>
impl<T: Clone> Clone for MatrixLuciRowInterpolation<T>
Source§fn clone(&self) -> MatrixLuciRowInterpolation<T>
fn clone(&self) -> MatrixLuciRowInterpolation<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MatrixLuciRowInterpolation<T>
impl<T> RefUnwindSafe for MatrixLuciRowInterpolation<T>where
T: RefUnwindSafe,
impl<T> Send for MatrixLuciRowInterpolation<T>where
T: Send,
impl<T> Sync for MatrixLuciRowInterpolation<T>where
T: Sync,
impl<T> Unpin for MatrixLuciRowInterpolation<T>where
T: Unpin,
impl<T> UnsafeUnpin for MatrixLuciRowInterpolation<T>
impl<T> UnwindSafe for MatrixLuciRowInterpolation<T>where
T: UnwindSafe,
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
U: Sized,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
U: Sized,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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