Crate ha_ndarray

Source

Re-exports§

pub use host::StackVec;

Modules§

host
The host platform (i.e. the CPU and main memory)
ops
Array operations

Macros§

axes
Creates a SmallVec containing the arguments.
range
Creates a SmallVec containing the arguments.
shape
Creates a SmallVec containing the arguments.
slice
Creates a SmallVec containing the arguments.
stackvec
Creates a SmallVec containing the arguments.

Structs§

AccessBuf
A struct which provides n-dimensional access to an underlying BufferInstance

Enums§

Accessor
A general-purpose implementor of Access used to elide recursive types. Uses an Arc so that cloning does not allocate.
AxisRange
Bounds on an individual array axis
Buffer
A general-purpose buffer which can represent a buffer on any supported platform.
BufferConverter
A sequence of elements in a single contiguous block of memory
Error
An array math error
Platform
The global platform, responsible for delegating to specific hardware platforms

Traits§

Access
A type which allows accessing array data
AccessMut
A type which allows accessing array data mutably
BufferInstance
A data buffer
BufferMut
A mutable data buffer
CType
A numeric type supported by ha-ndarray
Constant
Constructor for a new buffer filled with a single value
Convert
Converter to construct an owned, platform-specific buffer
Float
A floating-point CType
MatrixDual
Matrix dual operations
MatrixUnary
Matrix unary operations
NDArray
An n-dimensional array
NDArrayBoolean
Boolean array operations
NDArrayBooleanScalar
Boolean array operations with a scalar argument
NDArrayCast
Array cast operations
NDArrayCompare
Array comparison operations
NDArrayCompareScalar
Array-scalar comparison operations
NDArrayMath
Array arithmetic operations
NDArrayMathScalar
Array arithmetic operations with a scalar argument
NDArrayNumeric
Float-specific array methods
NDArrayRead
Access methods for an NDArray
NDArrayReduce
Axis-wise array reduce operations
NDArrayReduceAll
Array reduce operations
NDArrayReduceBoolean
Boolean array reduce operations
NDArrayTransform
Array transform operations
NDArrayTrig
Array trigonometry methods
NDArrayUnary
Unary array operations
NDArrayUnaryBoolean
Unary boolean array operations
NDArrayWhere
Conditional selection (boolean logic) methods
NDArrayWrite
Access methods for a mutable NDArray
PlatformInstance
A ha-ndarray platform

Functions§

broadcast_shape
Compute the shape which results from broadcasting the left and right shapes, if possible.
strides_for
Construct an iterator over the strides for the given shape and number of dimensions.

Type Aliases§

AccessOp
An accessor for the result of an n-dimensional array operation on the top-level Platform
Array
An n-dimensional array on the top-level Platform
ArrayAccess
A general type of n-dimensional array used to elide recursive types
ArrayBuf
An n-dimensional array backed by a buffer on the top-level Platform
ArrayOp
The result of an n-dimensional array operation
Axes
A list of n-dimensional array axes
Range
An n-dimensional selection range, used to slice an array
Shape
The shape of an n-dimensional array
Strides
The strides used to access an n-dimensional array