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

Function dot

dlib/simd/simd4f.h:587–594  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

585// ----------------------------------------------------------------------------------------
586
587 inline float dot(const simd4f& lhs, const simd4f& rhs)
588 {
589#ifdef DLIB_HAVE_SSE41
590 return _mm_cvtss_f32(_mm_dp_ps(lhs, rhs, 0xff));
591#else
592 return sum(lhs*rhs);
593#endif
594 }
595
596// ----------------------------------------------------------------------------------------
597

Callers 1

sumFunction · 0.70

Calls 1

sumFunction · 0.70

Tested by

no test coverage detected