extendr_api::prelude::row

Trait 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§

type Owned: RowBatch<<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.

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§

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

Implementors§

§

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

§

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

§

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

§

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

§

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

§

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

§

impl<E> RowBatch<E> for Row<E>
where E: Conjugate,

§

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

§

impl<E> RowBatch<E> for RowMut<'_, E>
where E: Conjugate,

§

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

§

impl<E> RowBatch<E> for RowRef<'_, E>
where E: Conjugate,

§

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