Expand description
This module provides the core operations for tensors, including filling, padding, reshaping, and tensor manipulation.
Modules§
Structs§
- PadAction
Iter - An iterator over the variants of PadAction
- Padding
Enums§
Traits§
- Affine
- apply an affine transformation to a tensor;
affine transformation is defined as
mul * self + add - Decrement
Axis - The
DecrementAxistrait defines a method enabling an axis to decrement itself, - Increment
Axis - The
IncrementAxistrait defines a method enabling an axis to increment itself, effectively adding a new axis to the array. - Inverse
- The
Inversetrait generically establishes an interface for computing the inverse of a type, regardless of if its a tensor, scalar, or some other compatible type. - IsSquare
IsSquareis a trait for checking if the layout, or dimensionality, of a tensor is square.- Mask
Fill - This trait is used to fill an array with a value based on a mask. The mask is a boolean array of the same shape as the array.
- MatMul
- The
MatMultrait defines an interface for matrix multiplication. - MatPow
- The
MatPowtrait defines an interface for computing the exponentiation of a matrix. - Pad
- The
Padtrait defines a padding operation for tensors. - Transpose
- The
Transposetrait generically establishes an interface for transposing a type - Unsqueeze
- The
Unsqueezetrait establishes an interface for a routine that unsqueezes an array, by inserting a new axis at a specified position. This is useful for reshaping arrays to meet specific dimensional requirements.