Skip to main content

Module tensor_like

Module tensor_like 

Source
Expand description

TensorLike trait for unifying tensor types.

This module provides a fully generic trait for tensor-like objects that expose external indices and support contraction operations.

§Design

The trait is fully generic (monomorphic), meaning:

  • No trait objects (dyn TensorLike)
  • Uses associated type for Index
  • All methods return Self instead of concrete types

For heterogeneous tensor collections, use an enum wrapper.

Structs§

DirectSumResult
Result of direct sum operation.
FactorizeOptions
Options for tensor factorization.
FactorizeResult
Result of tensor factorization.

Enums§

Canonical
Canonical direction for factorization.
FactorizeAlg
Factorization algorithm.
FactorizeError
Error type for factorize operations.
LinearizationOrder
Linearization order used when fusing or unfusing multiple logical indices into one physical index.

Traits§

TensorConstructionLike
Constructors and selection helpers for index-labelled tensors.
TensorContractionLike
Contraction/einsum-style operations for tensor-like values.
TensorFactorizationLike
Factorization operations for tensor-like values.
TensorLike
Trait for tensor-like objects that expose external indices and support contraction.
TensorVectorSpace
Vector-space operations for iterative linear algebra over tensor-like values.