MCPcopy Create free account
hub / github.com/davisking/dlib / select

Function select

dlib/simd/simd8f.h:387–395  ·  view source on GitHub ↗

perform cmp ? a : b

Source from the content-addressed store, hash-verified

385
386 // perform cmp ? a : b
387 inline simd8f select(const simd8f_bool& cmp, const simd8f& a, const simd8f& b)
388 {
389#ifdef DLIB_HAVE_AVX
390 return _mm256_blendv_ps(b,a,cmp);
391#else
392 return simd8f(select(cmp.low(), a.low(), b.low()),
393 select(cmp.high(), a.high(), b.high()));
394#endif
395 }
396
397// ----------------------------------------------------------------------------------------
398

Callers 9

readableMethod · 0.50
readableMethod · 0.50
acceptMethod · 0.50
get_gradientFunction · 0.50
read_echoing_selectFunction · 0.50
write_echoing_selectFunction · 0.50

Calls 3

simd8fClass · 0.85
lowMethod · 0.45
highMethod · 0.45

Tested by

no test coverage detected