Module prelude

Module prelude 

Source
Expand description

Prelude module with most commonly used items

Macros§

array
Create an Array with one, two, three, four, five, or six dimensions.
azip
Array zip macro: lock step function application across several arrays and producers.
concatenate
Concatenate arrays along the given axis.
s
Slice argument constructor.
stack
Stack arrays along the new axis.
stack_fn
Stack arrays along the new axis.

Structs§

Axis
An axis index.
Zip
Lock step function application across several arrays or other producers.

Traits§

Dimension
Array shape and index trait.
ScalarOperand
Elements that can be used as direct operands in arithmetic with arrays.
ShapeBuilder
A trait for Shape and D where D: Dimension that allows customizing the memory layout (strides) of an array shape.

Functions§

Ix1
Create a one-dimensional index
Ix2
Create a two-dimensional index
Ix3
Create a three-dimensional index
IxDyn
Create a dynamic-dimensional index
arr1
Create a one-dimensional array with elements from xs.
arr2
Create a two-dimensional array with elements from xs.
concatenate
Concatenate arrays along the given axis.
stack
Stack arrays along the new axis.
stack_fn
Stack arrays along the new axis.

Type Aliases§

Array
An array that owns its data uniquely.
Array0
zero-dimensional array
Array1
one-dimensional array
Array2
two-dimensional array
Array3
three-dimensional array
ArrayD
dynamic-dimensional array
ArrayView
A read-only array view.
ArrayView1
one-dimensional array view
ArrayView2
two-dimensional array view
ArrayViewMut
A read-write array view.
Ix1
one-dimensional
Ix2
two-dimensional
Ix3
three-dimensional
IxDyn
dynamic-dimensional
Matrix
Vector