Expand description
composable operators for tensor manipulations and transformations, neural networks, and more
Traitsยง
- Apply
Applyis a composable binary operator generally used to apply some object or function onto the caller to produce some output.- Apply
Mut ApplyMutprovides an interface for mutable containers that can apply a function onto their elements, modifying them in place.- Apply
Once - The
ApplyOncetrait consumes the container and applies the given function to every element before returning a new container with the results. - Array
Like - Decrement
Decrementis a chainable trait that defines a decrement method, effectively removing a single unit from the original object to create another- Decrement
Axis - The
DecrementAxisis used as a unary operator for removing a single axis from a multidimensional array or tensor-like structure. - Decrement
Mut - The
DecrementMuttrait defines a decrement method that operates in place, modifying the original object. - Default
Like - Fill
Like - Increment
- The
Increment - Increment
Axis - The
IncrementAxistrait defines a method enabling an axis to increment itself, effectively adding a new axis to the array. - Increment
Mut - IsSquare
IsSquareis a trait for checking if the layout, or dimensionality, of a tensor is square.- MapInto
MapIntodefines an interface for containers that can consume themselves to apply a given function onto each of their elements.- MapTo
MapToestablishes an interface for containers capable of applying a given function onto each of their elements, by reference.- 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.
- NdLike
- Ones
Like - 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. - Zeros
Like