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
Selfinstead of concrete types
For heterogeneous tensor collections, use an enum wrapper.
Structs§
- Direct
SumResult - Result of direct sum operation.
- Factorize
Options - Options for tensor factorization.
- Factorize
Result - Result of tensor factorization.
Enums§
- Allowed
Pairs - Specifies which tensor pairs are allowed to contract.
- Canonical
- Canonical direction for factorization.
- Factorize
Alg - Factorization algorithm.
- Factorize
Error - Error type for factorize operations.
Traits§
- Tensor
Like - Trait for tensor-like objects that expose external indices and support contraction.