Struct multiarray::MultiArray [] [src]

pub struct MultiArray<T, A> where
    A: LayoutHelper
{ /* fields omitted */ }

Type for multi-dimensional arrays that are organized linearly in memory much like a C array but with dynamically determined sizes.

Example

use multiarray::*;

let mut matrix = Array2D::new([3, 2], 0);
matrix[[0,0]] = 1; matrix[[0,1]] = 2;
matrix[[1,0]] = 3; matrix[[1,1]] = 4;
matrix[[2,0]] = 5; matrix[[2,1]] = 6;

Methods

impl<T, A> MultiArray<T, A> where
    T: Clone,
    A: LayoutHelper
[src]

Create new multi-dimensiopnal array with the given extents (one per dimension)

impl<T, A> MultiArray<T, A> where
    A: LayoutHelper
[src]

get the array's extents (one item per dimension)

create a shared view that allows further manipulations of the view

create a mutable view that allows further manipulations of the view

Create a shared view where one given dimension is reversed

Create a mutable view where one given dimension is reversed

Create a shared view where one given dimension is subsampled by a given factor

Create a shared view where one given dimension is subsampled by a given factor

Create a shared view where one given dimension is sliced

Create a mutable view where one given dimension is sliced

Create a shared view where the order of two dimensions are swapped

Create a mutable view where the order of two dimensions are swapped

impl<T, A> MultiArray<T, A> where
    A: LayoutHelperExt
[src]

Create a lower-dimensional shared view where one dimension is fixed at the given coordinate.

Create a lower-dimensional mutable view where one dimension is fixed at the given coordinate.

Trait Implementations

impl<T, A, I> Index<I> for MultiArray<T, A> where
    A: LayoutHelper,
    I: Into<A::U>, 
[src]

The returned type after indexing

The method for the indexing (container[index]) operation

impl<T, A, I> IndexMut<I> for MultiArray<T, A> where
    A: LayoutHelper,
    I: Into<A::U>, 
[src]

The method for the mutable indexing (container[index]) operation