Struct DenseBlock
pub struct DenseBlock<T = f64>where
T: Real,{
pub rows: usize,
pub cols: usize,
pub data: Vec<T>,
}Expand description
A column-major dense block: a_ij = data[i + j·rows].
Fields§
§rows: usizeNumber of rows.
cols: usizeNumber of columns.
data: Vec<T>The entries, column by column (rows · cols of them).
Implementations§
Trait Implementations§
Source§impl<T: Real> AdjointOperator<T> for DenseBlock<T>
impl<T: Real> AdjointOperator<T> for DenseBlock<T>
Source§fn apply_t_block(
&mut self,
x: MatRef<'_, T>,
y: MatMut<'_, T>,
) -> Result<(), OperatorError>
fn apply_t_block( &mut self, x: MatRef<'_, T>, y: MatMut<'_, T>, ) -> Result<(), OperatorError>
Block version; default loops over
AdjointOperator::apply_t. Read more§impl<T> Clone for DenseBlock<T>
impl<T> Clone for DenseBlock<T>
§fn clone(&self) -> DenseBlock<T>
fn clone(&self) -> DenseBlock<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 more§impl<T> Debug for DenseBlock<T>
impl<T> Debug for DenseBlock<T>
Source§impl<T: Real> LinearOperator<T> for DenseBlock<T>
Dense, with the reference loops (fixed summation order).
impl<T: Real> LinearOperator<T> for DenseBlock<T>
Dense, with the reference loops (fixed summation order).
Source§fn apply_block(
&mut self,
x: MatRef<'_, T>,
y: MatMut<'_, T>,
) -> Result<(), OperatorError>
fn apply_block( &mut self, x: MatRef<'_, T>, y: MatMut<'_, T>, ) -> Result<(), OperatorError>
Y ← A X for a block of columns; the default loops over
LinearOperator::apply. Dense and sparse implementations
override it (one pass over A for l columns — the cost that
matters in crate::rsvd()). Read more§impl<T> PartialEq for DenseBlock<T>
impl<T> PartialEq for DenseBlock<T>
impl<T> StructuralPartialEq for DenseBlock<T>
Auto Trait Implementations§
impl<T> Freeze for DenseBlock<T>
impl<T> RefUnwindSafe for DenseBlock<T>where
T: RefUnwindSafe,
impl<T> Send for DenseBlock<T>where
T: Send,
impl<T> Sync for DenseBlock<T>where
T: Sync,
impl<T> Unpin for DenseBlock<T>where
T: Unpin,
impl<T> UnsafeUnpin for DenseBlock<T>
impl<T> UnwindSafe for DenseBlock<T>where
T: UnwindSafe,
Blanket Implementations§
Source§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