Module tensor

Source
Expand description

the tensor module provides various traits and types for handling n-dimensional tensors. this module focuses on establishing a solid foundation for working with n-dimensional tensors.

Modules§

iter
this module defines various iterators for the TensorBase

Structs§

TensorBase
the TensorBase struct is the base type for all tensors in the library.

Traits§

NdTensor
The [Tensor] trait extends the RawTensor trait to provide additional functionality for tensors, such as creating tensors from shapes, applying functions, and iterating over elements. It is generic over the element type A and the dimension type `D
Numerical
Numerical is a trait for all numerical types; implements a number of core operations
RawTensor
The RawTensor trait defines the base interface for all tensors,
Scalar
The Scalar trait extends the Numerical trait to include additional mathematical operations for the purpose of reducing the number of overall traits required to complete various machine-learning tasks.
ScalarComplex

Type Aliases§

ArcTensor
a type alias for a TensorBase with an owned representation
RawViewMutTensor
a type alias for a TensorBase with an owned representation
RawViewTensor
A type alias for a TensorBase with a raw pointer representation.
Tensor
a type alias for a TensorBase with an owned representation
TensorView
a type alias for a TensorBase with a view representation
TensorViewMut
a type alias for a TensorBase with a mutable view representation