Skip to main content

bf16c

Type Alias bf16c 

Source
pub type bf16c = complex<bf16>;
Expand description

BFloat16 (32-bit) complex number — two bf16 components. Kernel outputs widened to f32c.

Aliased Type§

#[repr(C)]
pub struct bf16c { pub re: bf16, pub im: bf16, }

Fields§

§re: bf16§im: bf16

Trait Implementations§

Source§

impl Bilinear for bf16c

Source§

type Output = complex<f32>

Output type for results. f32 widens to f64; f16/bf16 use f32.
Source§

fn bilinear(a: &[Self], b: &[Self], c: &[Self]) -> Option<Self::Output>

Computes the bilinear form aᵀ × C × b. Read more
Source§

impl Dot for bf16c

Source§

type Output = complex<f32>

Source§

fn dot(a: &[Self], b: &[Self]) -> Option<Self::Output>

Source§

fn inner(a: &[Self], b: &[Self]) -> Option<Self::Output>

Alias for dot.
Source§

impl EachBlend for bf16c

Source§

type Scalar = complex<bf16>

Source§

fn each_blend( a: &[Self], b: &[Self], alpha: Self::Scalar, beta: Self::Scalar, result: &mut [Self], ) -> Option<()>

Source§

impl EachFMA for bf16c

Source§

type Scalar = complex<bf16>

Source§

fn each_fma( a: &[Self], b: &[Self], c: &[Self], alpha: Self::Scalar, beta: Self::Scalar, result: &mut [Self], ) -> Option<()>

Source§

impl EachScale for bf16c

Source§

type Scalar = complex<bf16>

Source§

fn each_scale( a: &[Self], alpha: Self::Scalar, beta: Self::Scalar, result: &mut [Self], ) -> Option<()>

Source§

impl EachSum for bf16c

Source§

fn each_sum(a: &[Self], b: &[Self], result: &mut [Self]) -> Option<()>

Source§

impl VDot for bf16c

Source§

fn vdot(a: &[Self], b: &[Self]) -> Option<Self::Output>

Source§

impl CastDtype for bf16c