Struct rusty_compression::qr::QR
source · [−]Fields
q: Array2<A>
The Q matrix from the QR Decomposition
r: Array2<A>
The R matrix from the QR Decomposition
ind: Array1<usize>
An index array. If ind[j] = k then the jth column of Q * R is identical to the kth column of the original matrix A.
Trait Implementations
sourceimpl QRTraits for QR<f32>
impl QRTraits for QR<f32>
type A = f32
sourcefn get_q(&self) -> ArrayView2<'_, Self::A>
fn get_q(&self) -> ArrayView2<'_, Self::A>
Return the Q matrix
sourcefn get_r(&self) -> ArrayView2<'_, Self::A>
fn get_r(&self) -> ArrayView2<'_, Self::A>
Return the R matrix
sourcefn compute_from(arr: ArrayView2<'_, Self::A>) -> Result<QR<Self::A>>
fn compute_from(arr: ArrayView2<'_, Self::A>) -> Result<QR<Self::A>>
Compute the QR decomposition from a given array
sourcefn get_ind(&self) -> ArrayView1<'_, usize>
fn get_ind(&self) -> ArrayView1<'_, usize>
Return the index vector
fn get_q_mut(&mut self) -> ArrayViewMut2<'_, Self::A>
fn get_r_mut(&mut self) -> ArrayViewMut2<'_, Self::A>
fn get_ind_mut(&mut self) -> ArrayViewMut1<'_, usize>
sourcefn column_id(&self) -> Result<ColumnID<Self::A>>
fn column_id(&self) -> Result<ColumnID<Self::A>>
Compute a column interpolative decomposition from the QR decomposition
sourcefn compute_from_range_estimate<Op: ConjMatMat<A = Self::A>>(
range: ArrayView2<'_, Self::A>,
op: &Op
) -> Result<QR<Self::A>>
fn compute_from_range_estimate<Op: ConjMatMat<A = Self::A>>(
range: ArrayView2<'_, Self::A>,
op: &Op
) -> Result<QR<Self::A>>
Compute a QR decomposition from a range estimate Read more
sourcefn compress_qr_rank(&self, max_rank: usize) -> Result<QR<Self::A>>
fn compress_qr_rank(&self, max_rank: usize) -> Result<QR<Self::A>>
Compress by giving a target rank
sourceimpl QRTraits for QR<f64>
impl QRTraits for QR<f64>
type A = f64
sourcefn get_q(&self) -> ArrayView2<'_, Self::A>
fn get_q(&self) -> ArrayView2<'_, Self::A>
Return the Q matrix
sourcefn get_r(&self) -> ArrayView2<'_, Self::A>
fn get_r(&self) -> ArrayView2<'_, Self::A>
Return the R matrix
sourcefn compute_from(arr: ArrayView2<'_, Self::A>) -> Result<QR<Self::A>>
fn compute_from(arr: ArrayView2<'_, Self::A>) -> Result<QR<Self::A>>
Compute the QR decomposition from a given array
sourcefn get_ind(&self) -> ArrayView1<'_, usize>
fn get_ind(&self) -> ArrayView1<'_, usize>
Return the index vector
fn get_q_mut(&mut self) -> ArrayViewMut2<'_, Self::A>
fn get_r_mut(&mut self) -> ArrayViewMut2<'_, Self::A>
fn get_ind_mut(&mut self) -> ArrayViewMut1<'_, usize>
sourcefn column_id(&self) -> Result<ColumnID<Self::A>>
fn column_id(&self) -> Result<ColumnID<Self::A>>
Compute a column interpolative decomposition from the QR decomposition
sourcefn compute_from_range_estimate<Op: ConjMatMat<A = Self::A>>(
range: ArrayView2<'_, Self::A>,
op: &Op
) -> Result<QR<Self::A>>
fn compute_from_range_estimate<Op: ConjMatMat<A = Self::A>>(
range: ArrayView2<'_, Self::A>,
op: &Op
) -> Result<QR<Self::A>>
Compute a QR decomposition from a range estimate Read more
sourcefn compress_qr_rank(&self, max_rank: usize) -> Result<QR<Self::A>>
fn compress_qr_rank(&self, max_rank: usize) -> Result<QR<Self::A>>
Compress by giving a target rank
sourceimpl QRTraits for QR<c32>
impl QRTraits for QR<c32>
type A = Complex<f32>
sourcefn get_q(&self) -> ArrayView2<'_, Self::A>
fn get_q(&self) -> ArrayView2<'_, Self::A>
Return the Q matrix
sourcefn get_r(&self) -> ArrayView2<'_, Self::A>
fn get_r(&self) -> ArrayView2<'_, Self::A>
Return the R matrix
sourcefn compute_from(arr: ArrayView2<'_, Self::A>) -> Result<QR<Self::A>>
fn compute_from(arr: ArrayView2<'_, Self::A>) -> Result<QR<Self::A>>
Compute the QR decomposition from a given array
sourcefn get_ind(&self) -> ArrayView1<'_, usize>
fn get_ind(&self) -> ArrayView1<'_, usize>
Return the index vector
fn get_q_mut(&mut self) -> ArrayViewMut2<'_, Self::A>
fn get_r_mut(&mut self) -> ArrayViewMut2<'_, Self::A>
fn get_ind_mut(&mut self) -> ArrayViewMut1<'_, usize>
sourcefn column_id(&self) -> Result<ColumnID<Self::A>>
fn column_id(&self) -> Result<ColumnID<Self::A>>
Compute a column interpolative decomposition from the QR decomposition
sourcefn compute_from_range_estimate<Op: ConjMatMat<A = Self::A>>(
range: ArrayView2<'_, Self::A>,
op: &Op
) -> Result<QR<Self::A>>
fn compute_from_range_estimate<Op: ConjMatMat<A = Self::A>>(
range: ArrayView2<'_, Self::A>,
op: &Op
) -> Result<QR<Self::A>>
Compute a QR decomposition from a range estimate Read more
sourcefn compress_qr_rank(&self, max_rank: usize) -> Result<QR<Self::A>>
fn compress_qr_rank(&self, max_rank: usize) -> Result<QR<Self::A>>
Compress by giving a target rank
sourceimpl QRTraits for QR<c64>
impl QRTraits for QR<c64>
type A = Complex<f64>
sourcefn get_q(&self) -> ArrayView2<'_, Self::A>
fn get_q(&self) -> ArrayView2<'_, Self::A>
Return the Q matrix
sourcefn get_r(&self) -> ArrayView2<'_, Self::A>
fn get_r(&self) -> ArrayView2<'_, Self::A>
Return the R matrix
sourcefn compute_from(arr: ArrayView2<'_, Self::A>) -> Result<QR<Self::A>>
fn compute_from(arr: ArrayView2<'_, Self::A>) -> Result<QR<Self::A>>
Compute the QR decomposition from a given array
sourcefn get_ind(&self) -> ArrayView1<'_, usize>
fn get_ind(&self) -> ArrayView1<'_, usize>
Return the index vector
fn get_q_mut(&mut self) -> ArrayViewMut2<'_, Self::A>
fn get_r_mut(&mut self) -> ArrayViewMut2<'_, Self::A>
fn get_ind_mut(&mut self) -> ArrayViewMut1<'_, usize>
sourcefn column_id(&self) -> Result<ColumnID<Self::A>>
fn column_id(&self) -> Result<ColumnID<Self::A>>
Compute a column interpolative decomposition from the QR decomposition
sourcefn compute_from_range_estimate<Op: ConjMatMat<A = Self::A>>(
range: ArrayView2<'_, Self::A>,
op: &Op
) -> Result<QR<Self::A>>
fn compute_from_range_estimate<Op: ConjMatMat<A = Self::A>>(
range: ArrayView2<'_, Self::A>,
op: &Op
) -> Result<QR<Self::A>>
Compute a QR decomposition from a range estimate Read more
sourcefn compress_qr_rank(&self, max_rank: usize) -> Result<QR<Self::A>>
fn compress_qr_rank(&self, max_rank: usize) -> Result<QR<Self::A>>
Compress by giving a target rank
Auto Trait Implementations
impl<A> RefUnwindSafe for QR<A> where
A: RefUnwindSafe,
impl<A> Send for QR<A> where
A: Send,
impl<A> Sync for QR<A> where
A: Sync,
impl<A> Unpin for QR<A>
impl<A> UnwindSafe for QR<A> where
A: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more