MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / SetUp

Method SetUp

test/dot.cpp:283–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281 array ha, hb, gold;
282
283 void SetUp() {
284 SUPPORTED_TYPE_CHECK(half_float::half);
285 int elems = GetParam();
286 array fa = af::randu(elems) - 0.5f;
287 array fb = af::randu(elems) - 0.5f;
288
289 ha = fa.as(f16);
290 hb = fb.as(f16);
291
292 gold = dot(fa, fb);
293 }
294};
295
296std::string print_dot(const ::testing::TestParamInfo<Dot::ParamType> info) {

Callers

nothing calls this directly

Calls 3

randuFunction · 0.85
asMethod · 0.80
dotFunction · 0.50

Tested by

no test coverage detected