Trait extendr_api::prelude::col::ColBatch

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§

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

Corresponding owning type.

Required Methods§

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

Constructor of the owned type that copies the values.

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.

Implementations on Foreign Types§

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

Implementors§

§

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

§

type Owned = Col<<E as Conjugate>::Canonical>

§

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

§

type Owned = Col<<E as Conjugate>::Canonical>

§

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

§

type Owned = Col<<E as Conjugate>::Canonical>

§

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

§

type Owned = Mat<<E as Conjugate>::Canonical>

§

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

§

type Owned = Mat<<E as Conjugate>::Canonical>

§

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

§

type Owned = Mat<<E as Conjugate>::Canonical>