Skip to main content

Crate ariadnetor_core

Crate ariadnetor_core 

Source
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 trait
  • LabelId: Interned tensor index labels
  • EinsumExpr, 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§

fresh
Mint a fresh, unique LabelId.
label
Intern a LabelId from a string expression.

Structs§

Complex
A complex number in Cartesian form.
ContractionPlan
Contraction plan identifying batch, contracted, and free indices for a 2-input einsum.
EinsumExpr
Parsed einsum expression with N inputs (indices as ASCII codes)
LabelId
Interned identifier for a tensor-leg label: a cheap Copy handle backed by a process-global string interner.

Enums§

ContractionError
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