KernelLinalgScalar

Trait KernelLinalgScalar 

Source
pub trait KernelLinalgScalar: LinalgScalar { }
Expand description

Scalar types with concrete backend kernel support in the current workspace.

This marker keeps public/high-level linalg bounds generic over backends without leaking provider-specific names such as Cpu* into higher layers.

§Examples

use tenferro_linalg_prims::KernelLinalgScalar;

fn needs_kernel_scalar<T: KernelLinalgScalar>(x: T) -> T { x }
assert_eq!(needs_kernel_scalar(1.0_f64), 1.0);

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl KernelLinalgScalar for f32

Source§

impl KernelLinalgScalar for f64

Source§

impl KernelLinalgScalar for Complex<f32>

Source§

impl KernelLinalgScalar for Complex<f64>

Implementors§