Skip to main content

apply_fma_f32

Function apply_fma_f32 

Source
pub fn apply_fma_f32(
    lhs: &[f32],
    rhs: &[f32],
    acc: &[f32],
    mask: Option<&Bitmask>,
) -> Result<FloatArray<f32>, KernelError>
Expand description

Performs element-wise fused multiply-add (a * b + acc) on &[f32] using SIMD (W32 lanes; dense or masked, via $dense/$masked as needed. Falls back to standard scalar ops when the simd feature is not enabled. Results in a FloatArray<f32>.