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

Function TEST

test/flat.cpp:30–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28using std::vector;
29
30TEST(FlatTests, Test_flat_1D) {
31 const int num = 10000;
32 array in = randu(num);
33 array out = flat(in);
34
35 ASSERT_ARRAYS_EQ(in, out);
36}
37
38TEST(FlatTests, Test_flat_2D_Half) {
39 if (noHalfTests(f16)) return;

Callers

nothing calls this directly

Calls 8

randuFunction · 0.85
noHalfTestsFunction · 0.85
seqClass · 0.85
freeHostFunction · 0.85
hostMethod · 0.80
flatFunction · 0.50
dim4Class · 0.50
elementsMethod · 0.45

Tested by

no test coverage detected