pub trait LQTraits {
type A: Scalar;
Show 15 methods
// Required methods
fn get_q(&self) -> ArrayView2<'_, Self::A>;
fn get_l(&self) -> ArrayView2<'_, Self::A>;
fn get_ind(&self) -> ArrayView1<'_, usize>;
fn get_q_mut(&mut self) -> ArrayViewMut2<'_, Self::A>;
fn get_l_mut(&mut self) -> ArrayViewMut2<'_, Self::A>;
fn get_ind_mut(&mut self) -> ArrayViewMut1<'_, usize>;
fn compute_from(arr: ArrayView2<'_, Self::A>) -> Result<LQ<Self::A>>;
fn row_id(&self) -> Result<RowID<Self::A>>;
// Provided methods
fn nrows(&self) -> usize { ... }
fn ncols(&self) -> usize { ... }
fn rank(&self) -> usize { ... }
fn to_mat(&self) -> Array2<Self::A> { ... }
fn compress_lq_rank(&self, max_rank: usize) -> Result<LQ<Self::A>> { ... }
fn compress_lq_tolerance(&self, tol: f64) -> Result<LQ<Self::A>> { ... }
fn compress(&self, compression_type: CompressionType) -> Result<LQ<Self::A>> { ... }
}
Expand description
Traits for the LQ Decomposition
Required Associated Types§
Required Methods§
Sourcefn get_q(&self) -> ArrayView2<'_, Self::A>
fn get_q(&self) -> ArrayView2<'_, Self::A>
Return the Q matrix
Sourcefn get_l(&self) -> ArrayView2<'_, Self::A>
fn get_l(&self) -> ArrayView2<'_, Self::A>
Return the L matrix
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_l_mut(&mut self) -> ArrayViewMut2<'_, Self::A>
fn get_ind_mut(&mut self) -> ArrayViewMut1<'_, usize>
Sourcefn compute_from(arr: ArrayView2<'_, Self::A>) -> Result<LQ<Self::A>>
fn compute_from(arr: ArrayView2<'_, Self::A>) -> Result<LQ<Self::A>>
Compute the LQ decomposition from a given array
Provided Methods§
Sourcefn compress_lq_rank(&self, max_rank: usize) -> Result<LQ<Self::A>>
fn compress_lq_rank(&self, max_rank: usize) -> Result<LQ<Self::A>>
Compress by giving a target rank
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.