Expand description
Core traits and types for ariadnetor tensor library
This crate provides backend-agnostic abstractions:
Scalar: Element type trait (sealed to f32, f64, Complex, Complex ) ComputeBackend: Pluggable backend traitLabelId: Interned tensor index labelsEinsumExpr,ContractionPlan: Einsum parsing and analysis
Re-exports§
pub use backend::ComputeBackend;pub use backend::ExecPolicy;pub use backend::MemoryOrder;
Modules§
- backend
- Pluggable compute backend trait.
Macros§
Structs§
- Complex
- A complex number in Cartesian form.
- Contraction
Plan - Contraction plan identifying batch, contracted, and free indices for a 2-input einsum.
- Einsum
Expr - Parsed einsum expression with N inputs (indices as ASCII codes)
- LabelId
- Interned identifier for a tensor-leg label: a cheap
Copyhandle backed by a process-global string interner.
Enums§
- Contraction
Error - Error raised while parsing or validating an Einstein-notation contraction.
Traits§
- Scalar
- Scalar type for tensor elements (sealed trait).
Functions§
- compute_
permutation - Compute permutation from current to target order