MCPcopy Create free account
hub / github.com/AdaptiveCpp/AdaptiveCpp / ref_dot

Function ref_dot

tests/sycl/math.cpp:164–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162
163 template<typename DT, int D>
164 DT ref_dot(vec<DT, D> a, vec<DT, D> b) {
165 DT ret = DT{0};
166 for(int c = 0; c < D; ++c) {
167 ret += comp(a, c) * comp(b, c);
168 }
169 return ret;
170 }
171 double ref_dot(double a, double b) {
172 return a * b;
173 }

Callers 1

Calls 1

compFunction · 0.70

Tested by

no test coverage detected