Skip to main content

Module core

Module core 

Source
Expand description

Backend-independent rank/layout, dtype and scalar metadata re-exported from tenferro-tensor-core. It holds metadata only: every tensor type, including the default scalar set, is exported from this crate’s root.

Structs§

DynRank
Dynamic tensor rank marker.
Rank
Static tensor rank marker.
SliceSpec
Explicit slice descriptor.
TensorLayout
Storage-neutral tensor layout metadata.

Enums§

DType
Runtime scalar dtype tag.
ErrorKind
Coarse classification shared by crate-local error types.
ShapeMismatch
Structured facts describing why two tensor shapes are incompatible.
ValidationError
Structured validation failures owned by the tensor data model.
ValidationKind
Coarse classification for shared tensor validation failures.

Traits§

IntoShapeVec
Convert a common shape container into the dynamic owned shape type.
TensorRank
Rank contract for tensor metadata shapes and strides.
TensorScalar
Sealed trait for scalar types supported by the core tensor data model.

Functions§

col_major_strides
Return compact column-major strides for a shape.

Type Aliases§

Result
Result type for tensor data-model operations.
ShapeVec
Small tensor shape vector with inline capacity for common dynamic ranks.
StrideVec
Small tensor stride vector with signed element strides.