TensorComplexScaleContextFor

Trait TensorComplexScaleContextFor 

Source
pub trait TensorComplexScaleContextFor<Input: ComplexFloat + Scalar>
where Input::Real: Scalar + Send + Sync,
{ 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§

Source

type ComplexScaleBackend: TensorComplexScalePrims<Input, Context = Self>

Backend associated with the complex-by-real family.

Implementors§