Skip to main content

interleaved_complex_dot

Function interleaved_complex_dot 

Source
pub fn interleaved_complex_dot<T, A, const CONJ_B: bool>(
    a: &[T],
    b: &[T],
) -> Result<(T, T), SimdError>
where T: ScalarTrait + Neg<Output = T>, A: SimdArch + SimdKernel<T>,
Expand description

Computes an interleaved complex dot product using a monomorphized SIMD architecture.

Inputs are primitive lane slices in [re0, im0, re1, im1, ...] order. The result is (re, im) for sum(a[i] * b[i]); when CONJ_B is true, the operation is sum(a[i] * conj(b[i])).