Skip to content
tmpl

probe_nonfinite

void probe_nonfinite()

out[i] = P(in[i]) as a 0 / 1 byte, over n elements.

Template Parameters

P : NonFiniteProbe The question. A template argument, not a runtime switch, so the loop body holds a single comparison and vectorises. Format : FloatFormat The layout of each value. kComplex : bool Each element is two values, real then imaginary. A complex number is NaN, or infinite, when either part is, and finite only when both are (the reference framework's rule).

Parameters

inconst void*
n contiguous elements.
outstd::uint8_t*
n bytes.
nstd::size_t
Element count.
grainstd::size_t
Smallest chunk handed to another core (cpu::parallel_for).