Trait ColBatch

Source
pub trait ColBatch<E>: As2D<E>
where E: Conjugate,
{ type Owned: ColBatchMut<<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 column vectors. Can be a single column or a matrix.

Required Associated Types§

Source

type Owned: ColBatchMut<<E as Conjugate>::Canonical>

Corresponding owning type.

Required Methods§

Source

fn new_owned_zeros(nrows: usize, ncols: usize) -> Self::Owned

Constructor of the owned type that initializes the values to zero.

Source

fn new_owned_copied(src: &Self) -> Self::Owned

Constructor of the owned type that copies the values.

Source

fn resize_owned(owned: &mut Self::Owned, nrows: usize, ncols: usize)

Resize an owned column or matrix.

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.

Implementations on Foreign Types§

Source§

impl<E, T> ColBatch<E> for &T
where E: Conjugate, T: ColBatch<E>,

Source§

type Owned = <T as ColBatch<E>>::Owned

Source§

fn new_owned_zeros(nrows: usize, ncols: usize) -> <&T as ColBatch<E>>::Owned

Source§

fn new_owned_copied(src: &&T) -> <&T as ColBatch<E>>::Owned

Source§

fn resize_owned( owned: &mut <&T as ColBatch<E>>::Owned, nrows: usize, ncols: usize, )

Source§

impl<E, T> ColBatch<E> for &mut T
where E: Conjugate, T: ColBatch<E>,

Source§

type Owned = <T as ColBatch<E>>::Owned

Source§

fn new_owned_zeros(nrows: usize, ncols: usize) -> <&mut T as ColBatch<E>>::Owned

Source§

fn new_owned_copied(src: &&mut T) -> <&mut T as ColBatch<E>>::Owned

Source§

fn resize_owned( owned: &mut <&mut T as ColBatch<E>>::Owned, nrows: usize, ncols: usize, )

Implementors§

Source§

impl<E> ColBatch<E> for Col<E>
where E: Conjugate,

Source§

impl<E> ColBatch<E> for ColMut<'_, E>
where E: Conjugate,

Source§

impl<E> ColBatch<E> for ColRef<'_, E>
where E: Conjugate,

Source§

impl<E> ColBatch<E> for Mat<E>
where E: Conjugate,

Source§

impl<E> ColBatch<E> for MatMut<'_, E>
where E: Conjugate,

Source§

impl<E> ColBatch<E> for MatRef<'_, E>
where E: Conjugate,