Trait extendr_api::prelude::row::RowBatch
pub trait RowBatch<E>: As2D<E>where
E: Conjugate,{
type Owned: RowBatch<<E as Conjugate>::Canonical>;
// Required methods
fn new_owned_zeros(nrows: usize, ncols: usize) -> Self::Owned;
fn new_owned_copied(src: &Self) -> Self::Owned;
fn resize_owned(owned: &mut Self::Owned, nrows: usize, ncols: usize);
}
Expand description
Type that can be interpreted as a batch of row vectors. Can be a single row or a matrix.
Required Associated Types§
Required Methods§
fn new_owned_zeros(nrows: usize, ncols: usize) -> Self::Owned
fn new_owned_zeros(nrows: usize, ncols: usize) -> Self::Owned
Constructor of the owned type that initializes the values to zero.
fn new_owned_copied(src: &Self) -> Self::Owned
fn new_owned_copied(src: &Self) -> Self::Owned
Constructor of the owned type that copies the values.
fn resize_owned(owned: &mut Self::Owned, nrows: usize, ncols: usize)
fn resize_owned(owned: &mut Self::Owned, nrows: usize, ncols: usize)
Resize an owned column or matrix.
Object Safety§
This trait is not object safe.