Skip to main content

batch_cmp_eq

Function batch_cmp_eq 

Source
pub fn batch_cmp_eq(
    lhs: &[f64],
    rhs: &[f64],
    mask: &mut [u8],
) -> Result<(), BatchError>
Expand description

Batch IEEE-754 equality: mask[i] = 0xFF if lhs[i] == rhs[i], else 0x00. NaN never equals NaN.

ยงErrors

Returns BatchError::LengthMismatch when any of the three slices has a different length.