Type Alias SliceArrayMut

Source
pub type SliceArrayMut<'a, Item, const NDIM: usize> = Array<Item, BaseArray<Item, SliceContainerMut<'a, Item>, NDIM>, NDIM>;
Expand description

A mutable dynamically allocated array from a data slice.

Aliased Type§

pub struct SliceArrayMut<'a, Item, const NDIM: usize>(/* private fields */);

Implementations§

Source§

impl<'a, Item: RlstBase, const NDIM: usize> SliceArrayMut<'a, Item, NDIM>

Source

pub fn from_shape(slice: &'a mut [Item], shape: [usize; NDIM]) -> Self

Create a new array from a slice with a given shape.

The stride is automatically assumed to be column major.

Source

pub fn from_shape_with_stride( slice: &'a mut [Item], shape: [usize; NDIM], stride: [usize; NDIM], ) -> Self

Create a new array from a slice with a given shape and stride.