Skip to main content

equal

Function equal 

Source
pub fn equal<F, O>(
    o: &O,
    x: <O as Ops<F>>::V,
    y: <O as Ops<F>>::V,
    close: impl FnOnce(&O) -> <O as Ops<F>>::B,
) -> <O as Ops<F>>::B
where F: Float, O: Ops<F> + ?Sized,
Expand description

Whether x equals y: x == y, or close, which gives whether they’re close. Each of these compositions runs close after its plain comparison: in the kernels’ loops, that order is what lets LLVM vectorize 16 items at a time rather than 8.