Struct TwoSidedID

Source
pub struct TwoSidedID<A: Scalar> {
    pub c: Array2<A>,
    pub x: Array2<A>,
    pub r: Array2<A>,
    pub row_ind: Array1<usize>,
    pub col_ind: Array1<usize>,
}
Expand description

Store a two sided interpolative decomposition

Fields§

§c: Array2<A>

The C matrix of the two sided interpolative decomposition

§x: Array2<A>

The X matrix of the two sided interpolative decomposition

§r: Array2<A>

The R matrix of the two sided interpolative decomposition

§row_ind: Array1<usize>

The row index vector

§col_ind: Array1<usize>

The column index vector

Trait Implementations§

Source§

impl<S> Apply<Complex<f32>, ArrayBase<S, Dim<[usize; 1]>>> for TwoSidedID<c32>
where S: Data<Elem = c32>,

Source§

type Output = ArrayBase<OwnedRepr<Complex<f32>>, Dim<[usize; 1]>>

Source§

fn dot(&self, rhs: &ArrayBase<S, Ix1>) -> Self::Output

Source§

impl<S> Apply<Complex<f32>, ArrayBase<S, Dim<[usize; 2]>>> for TwoSidedID<c32>
where S: Data<Elem = c32>,

Source§

type Output = ArrayBase<OwnedRepr<Complex<f32>>, Dim<[usize; 2]>>

Source§

fn dot(&self, rhs: &ArrayBase<S, Ix2>) -> Self::Output

Source§

impl<S> Apply<Complex<f64>, ArrayBase<S, Dim<[usize; 1]>>> for TwoSidedID<c64>
where S: Data<Elem = c64>,

Source§

type Output = ArrayBase<OwnedRepr<Complex<f64>>, Dim<[usize; 1]>>

Source§

fn dot(&self, rhs: &ArrayBase<S, Ix1>) -> Self::Output

Source§

impl<S> Apply<Complex<f64>, ArrayBase<S, Dim<[usize; 2]>>> for TwoSidedID<c64>
where S: Data<Elem = c64>,

Source§

type Output = ArrayBase<OwnedRepr<Complex<f64>>, Dim<[usize; 2]>>

Source§

fn dot(&self, rhs: &ArrayBase<S, Ix2>) -> Self::Output

Source§

impl<S> Apply<f32, ArrayBase<S, Dim<[usize; 1]>>> for TwoSidedID<f32>
where S: Data<Elem = f32>,

Source§

type Output = ArrayBase<OwnedRepr<f32>, Dim<[usize; 1]>>

Source§

fn dot(&self, rhs: &ArrayBase<S, Ix1>) -> Self::Output

Source§

impl<S> Apply<f32, ArrayBase<S, Dim<[usize; 2]>>> for TwoSidedID<f32>
where S: Data<Elem = f32>,

Source§

type Output = ArrayBase<OwnedRepr<f32>, Dim<[usize; 2]>>

Source§

fn dot(&self, rhs: &ArrayBase<S, Ix2>) -> Self::Output

Source§

impl<S> Apply<f64, ArrayBase<S, Dim<[usize; 1]>>> for TwoSidedID<f64>
where S: Data<Elem = f64>,

Source§

type Output = ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>

Source§

fn dot(&self, rhs: &ArrayBase<S, Ix1>) -> Self::Output

Source§

impl<S> Apply<f64, ArrayBase<S, Dim<[usize; 2]>>> for TwoSidedID<f64>
where S: Data<Elem = f64>,

Source§

type Output = ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>

Source§

fn dot(&self, rhs: &ArrayBase<S, Ix2>) -> Self::Output

Source§

impl TwoSidedIDTraits for TwoSidedID<c32>

Source§

type A = Complex<f32>

Source§

fn get_c(&self) -> ArrayView2<'_, Self::A>

Return the C matrix
Source§

fn get_x(&self) -> ArrayView2<'_, Self::A>

Return the X matrix
Source§

fn get_r(&self) -> ArrayView2<'_, Self::A>

Return the R matrix
Source§

fn get_col_ind(&self) -> ArrayView1<'_, usize>

Return the column index vector
Source§

fn get_row_ind(&self) -> ArrayView1<'_, usize>

Return the row index vector
Source§

fn get_c_mut(&mut self) -> ArrayViewMut2<'_, Self::A>

Source§

fn get_x_mut(&mut self) -> ArrayViewMut2<'_, Self::A>

Source§

fn get_r_mut(&mut self) -> ArrayViewMut2<'_, Self::A>

Source§

fn get_col_ind_mut(&mut self) -> ArrayViewMut1<'_, usize>

Source§

fn get_row_ind_mut(&mut self) -> ArrayViewMut1<'_, usize>

Source§

fn new( x: Array2<Self::A>, r: Array2<Self::A>, c: Array2<Self::A>, col_ind: Array1<usize>, row_ind: Array1<usize>, ) -> Self

Return a two sided interpolative decomposition from the component matrices X, R, C, and the column and row index vectors
Source§

fn nrows(&self) -> usize

Number of rows of the underlying operator
Source§

fn ncols(&self) -> usize

Number of columns of the underlying operator
Source§

fn rank(&self) -> usize

Rank of the two sided interpolative decomposition
Source§

fn to_mat(&self) -> Array2<Self::A>

Convert to a matrix
Source§

impl TwoSidedIDTraits for TwoSidedID<c64>

Source§

type A = Complex<f64>

Source§

fn get_c(&self) -> ArrayView2<'_, Self::A>

Return the C matrix
Source§

fn get_x(&self) -> ArrayView2<'_, Self::A>

Return the X matrix
Source§

fn get_r(&self) -> ArrayView2<'_, Self::A>

Return the R matrix
Source§

fn get_col_ind(&self) -> ArrayView1<'_, usize>

Return the column index vector
Source§

fn get_row_ind(&self) -> ArrayView1<'_, usize>

Return the row index vector
Source§

fn get_c_mut(&mut self) -> ArrayViewMut2<'_, Self::A>

Source§

fn get_x_mut(&mut self) -> ArrayViewMut2<'_, Self::A>

Source§

fn get_r_mut(&mut self) -> ArrayViewMut2<'_, Self::A>

Source§

fn get_col_ind_mut(&mut self) -> ArrayViewMut1<'_, usize>

Source§

fn get_row_ind_mut(&mut self) -> ArrayViewMut1<'_, usize>

Source§

fn new( x: Array2<Self::A>, r: Array2<Self::A>, c: Array2<Self::A>, col_ind: Array1<usize>, row_ind: Array1<usize>, ) -> Self

Return a two sided interpolative decomposition from the component matrices X, R, C, and the column and row index vectors
Source§

fn nrows(&self) -> usize

Number of rows of the underlying operator
Source§

fn ncols(&self) -> usize

Number of columns of the underlying operator
Source§

fn rank(&self) -> usize

Rank of the two sided interpolative decomposition
Source§

fn to_mat(&self) -> Array2<Self::A>

Convert to a matrix
Source§

impl TwoSidedIDTraits for TwoSidedID<f32>

Source§

type A = f32

Source§

fn get_c(&self) -> ArrayView2<'_, Self::A>

Return the C matrix
Source§

fn get_x(&self) -> ArrayView2<'_, Self::A>

Return the X matrix
Source§

fn get_r(&self) -> ArrayView2<'_, Self::A>

Return the R matrix
Source§

fn get_col_ind(&self) -> ArrayView1<'_, usize>

Return the column index vector
Source§

fn get_row_ind(&self) -> ArrayView1<'_, usize>

Return the row index vector
Source§

fn get_c_mut(&mut self) -> ArrayViewMut2<'_, Self::A>

Source§

fn get_x_mut(&mut self) -> ArrayViewMut2<'_, Self::A>

Source§

fn get_r_mut(&mut self) -> ArrayViewMut2<'_, Self::A>

Source§

fn get_col_ind_mut(&mut self) -> ArrayViewMut1<'_, usize>

Source§

fn get_row_ind_mut(&mut self) -> ArrayViewMut1<'_, usize>

Source§

fn new( x: Array2<Self::A>, r: Array2<Self::A>, c: Array2<Self::A>, col_ind: Array1<usize>, row_ind: Array1<usize>, ) -> Self

Return a two sided interpolative decomposition from the component matrices X, R, C, and the column and row index vectors
Source§

fn nrows(&self) -> usize

Number of rows of the underlying operator
Source§

fn ncols(&self) -> usize

Number of columns of the underlying operator
Source§

fn rank(&self) -> usize

Rank of the two sided interpolative decomposition
Source§

fn to_mat(&self) -> Array2<Self::A>

Convert to a matrix
Source§

impl TwoSidedIDTraits for TwoSidedID<f64>

Source§

type A = f64

Source§

fn get_c(&self) -> ArrayView2<'_, Self::A>

Return the C matrix
Source§

fn get_x(&self) -> ArrayView2<'_, Self::A>

Return the X matrix
Source§

fn get_r(&self) -> ArrayView2<'_, Self::A>

Return the R matrix
Source§

fn get_col_ind(&self) -> ArrayView1<'_, usize>

Return the column index vector
Source§

fn get_row_ind(&self) -> ArrayView1<'_, usize>

Return the row index vector
Source§

fn get_c_mut(&mut self) -> ArrayViewMut2<'_, Self::A>

Source§

fn get_x_mut(&mut self) -> ArrayViewMut2<'_, Self::A>

Source§

fn get_r_mut(&mut self) -> ArrayViewMut2<'_, Self::A>

Source§

fn get_col_ind_mut(&mut self) -> ArrayViewMut1<'_, usize>

Source§

fn get_row_ind_mut(&mut self) -> ArrayViewMut1<'_, usize>

Source§

fn new( x: Array2<Self::A>, r: Array2<Self::A>, c: Array2<Self::A>, col_ind: Array1<usize>, row_ind: Array1<usize>, ) -> Self

Return a two sided interpolative decomposition from the component matrices X, R, C, and the column and row index vectors
Source§

fn nrows(&self) -> usize

Number of rows of the underlying operator
Source§

fn ncols(&self) -> usize

Number of columns of the underlying operator
Source§

fn rank(&self) -> usize

Rank of the two sided interpolative decomposition
Source§

fn to_mat(&self) -> Array2<Self::A>

Convert to a matrix

Auto Trait Implementations§

§

impl<A> Freeze for TwoSidedID<A>

§

impl<A> RefUnwindSafe for TwoSidedID<A>
where A: RefUnwindSafe,

§

impl<A> Send for TwoSidedID<A>
where A: Send,

§

impl<A> Sync for TwoSidedID<A>
where A: Sync,

§

impl<A> Unpin for TwoSidedID<A>

§

impl<A> UnwindSafe for TwoSidedID<A>
where A: RefUnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V