pub trait TensorComplexScaleContextFor<Input: ComplexFloat + Scalar>{
type ComplexScaleBackend: TensorComplexScalePrims<Input, Context = Self>;
}Expand description
Bridge trait that binds a complex-by-real execution context to its backend.
§Examples
ⓘ
use num_complex::Complex64;
use tenferro_prims::{CpuContext, TensorComplexScaleContextFor};
fn accepts_context<C>(_: &mut C)
where
C: TensorComplexScaleContextFor<Complex64>,
{
}
let mut ctx = CpuContext::new(1);
accepts_context(&mut ctx);Required Associated Types§
Sourcetype ComplexScaleBackend: TensorComplexScalePrims<Input, Context = Self>
type ComplexScaleBackend: TensorComplexScalePrims<Input, Context = Self>
Backend associated with the complex-by-real family.