Module tensors

Source
Expand description

Generic N dimensional named tensors.

Tensors are generic over some type T and some usize D. If T is Numeric then the tensor can be used in a mathematical way. D is the number of dimensions in the tensor and a compile time constant. Each tensor also carries D dimension name and length pairs.

Modules§

dimensions
Utilities to manipulate Dimensions.
indexing
Indexing
operations
Tensor operations
views
Generic views into a tensor.

Structs§

InvalidDimensionsError
An error indicating failure to do something with a Tensor because the dimension names that were provided did not match with the dimension names that were valid.
InvalidShapeError
An error indicating failure to do something with a Tensor because the requested shape is not valid.
Tensor
A named tensor of some type T and number of dimensions D.

Type Aliases§

Dimension
Dimension names are represented as static string references.