Expand description
Layouts which describe the shape and strides of a tensor.
Structs§
- DynLayout
- Defines the valid indices for an N-dimensional array and how to map them to offsets in a linear buffer, where N can be varied at runtime.
- NdLayout
- Defines the valid indices for an N-dimensional array and how to map them to offsets in a linear buffer, where N is known at compile time.
Enums§
- Overlap
Policy - Specifies whether a tensor or view may have an overlapping layout.
Traits§
- AsIndex
- Trait for converting types into indices for use with a given layout.
- Broadcast
Layout - Trait for broadcasting a layout from one shape to another.
- Into
Layout - Trait for shapes which can be used to create a contiguous layout.
- Layout
- Describes the shape and strides of a tensor.
- Matrix
Layout - Provides convenience methods for querying the shape and strides of a matrix.
- MutLayout
- MutLayout extends
Layoutwith methods for creating, modifying and transforming layouts. - Remove
Dim - Trait that removes one dimension from a layout.
- Resize
Layout - Trait which extends
MutLayoutwith support for changing the number of dimensions in-place. - Slice
With - Trait for slicing a layout with a range.
- Trusted
Layout - A layout which upholds guarantees on returned storage offsets.
Functions§
- is_
valid_ permutation - Return true if
permutationis a valid permutation of dimensions for a tensor of rankndim.