Expand description
N-ary optimized einsum frontend.
Modules§
- error
- Error types for einsum operations.
- expr
- Recursive contraction-tree evaluation.
- operand
- Type-erased einsum operands (
f64/Complex64, owned / borrowed). - parse
- Nested einsum string parser.
- single_
tensor - Single-tensor operations (permute, trace, diagonal extraction).
- typed_
tensor - Runtime type dispatch over
f64andComplex64tensors.
Structs§
- Buffer
Pool - Reusable buffer pool for intermediate tensor allocations.
- Einsum
Code - Parsed einsum code: contraction tree + final output indices.
Enums§
- Einsum
Error - Errors that can occur during einsum parsing or evaluation.
- Einsum
Node - Parsed contraction tree node (no operands, just structure).
- Einsum
Operand - A type-erased einsum operand holding either f64 or Complex64 strided data.
- Strided
Data - Type-erased strided data that can be either owned or borrowed.
- Typed
Tensor - A type-erased tensor that dispatches over f64 and Complex64 at runtime.
Traits§
- Einsum
Scalar - Scalar types that can be used as the output element type for
einsum_into.
Functions§
- einsum
- Parse and evaluate an einsum expression in one call.
- einsum_
into - Parse and evaluate an einsum expression, writing the result into a pre-allocated output buffer with alpha/beta scaling.
- einsum_
into_ with_ pool - Parse and evaluate an einsum expression into an output buffer with optional buffer pool reuse.
- einsum_
with_ pool - Parse and evaluate an einsum expression with optional buffer pool reuse.
- needs_
c64_ promotion - Returns true if any input is Complex64 (triggering promotion for all).
- parse_
einsum - Parse an einsum string like “(ij,jk),kl->il” into an EinsumCode.
Type Aliases§
- Result
- Convenience alias for
Result<T, EinsumError>.