pub type BackendContext<Alg, Backend> = <Backend as TensorSemiringCore<Alg>>::Context;
Context type used by public einsum APIs for a backend/algebra pair.
use tenferro_algebra::Standard; use tenferro_einsum::BackendContext; use tenferro_prims::{CpuBackend, CpuContext}; let mut ctx: BackendContext<Standard<f64>, CpuBackend> = CpuContext::new(1); let _ = &mut ctx;