BackendContext

Type Alias BackendContext 

pub type BackendContext<Alg, Backend> = <Backend as TensorSemiringCore<Alg>>::Context;
Expand description

Context type used by public einsum APIs for a backend/algebra pair.

§Examples

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;