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

Function TEST

test/dot.cpp:195–214  ·  view source on GitHub ↗

//////////////////////////////// CPP ////////////////////////////////

Source from the content-addressed store, hash-verified

193///////////////////////////////////// CPP ////////////////////////////////
194//
195TEST(DotF, CPP) {
196 vector<dim4> numDims;
197 vector<vector<float>> in;
198 vector<vector<float>> tests;
199
200 readTests<float, float, float>(TEST_DIR "/blas/dot_f_1000.test", numDims,
201 in, tests);
202
203 dim4 aDims = numDims[0];
204 dim4 bDims = numDims[1];
205
206 array a(aDims, &(in[0].front()));
207 array b(bDims, &(in[1].front()));
208
209 array out = dot(a, b, AF_MAT_CONJ, AF_MAT_NONE);
210
211 vector<float> goldData = tests[0];
212 dim4 goldDims(1);
213 ASSERT_VEC_ARRAY_EQ(goldData, goldDims, out);
214}
215
216TEST(DotCCU, CPP) {
217 vector<dim4> numDims;

Callers

nothing calls this directly

Calls 1

dotFunction · 0.50

Tested by

no test coverage detected