Struct array3d::Array3d [] [src]

pub struct Array3d<T> {
    pub shape: V3i,
    pub data: Vec<T>,
}

Fields

Methods

impl<T: Clone> Array3d<T>
[src]

[src]

[src]

production from a function with expansion, todo - make this more general e.g.'production in blocks' the motivation is to share state across the production of a block of adjacent cells

[src]

[src]

[src]

[src]

[src]

produce a new array3d by applying a function to every element

[src]

[src]

internal iteration with inplace mutation

[src]

[src]

[src]

[src]

[src]

[src]

produce a 2d array by folding along the X axis

[src]

fold values along x,y,z in turn without intermediate storage

[src]

fold values along z,y,x in turn without intermediate storage

[src]

fold the whole array to produce a single value

[src]

produce tiles by applying a function to every subtile output size is divided by tilesize must be exact multiple.

[src]

subroutine for 'fold tiles', see context closure is borrowed for multiple invocation by caller

[src]

[src]

[src]

[src]

[src]

[src]

X form of convolution
XOX passing each cell and it's X immiediate neighbours on each axis

[src]

[src]

[src]

[src]

[src]

special case of convolution for 2x2 cells, e.g. for marching cubes

[src]

take 2x2x2 blocks, fold to produce new values

Trait Implementations

impl<T: Clone> Index<V3i> for Array3d<T>
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl<T: Clone> IndexMut<V3i> for Array3d<T>
[src]

[src]

Performs the mutable indexing (container[index]) operation.