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

Function TEST

test/write.cpp:77–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75TYPED_TEST(Write, Volume1) { writeTest<TypeParam>(dim4(32, 64, 16)); }
76
77TEST(Write, VoidPointer) {
78 vector<float> gold(100, 5);
79
80 array a(100);
81
82 void *h_gold = (void *)&gold.front();
83 a.write(h_gold, 100 * sizeof(float), afHost);
84
85 ASSERT_VEC_ARRAY_EQ(gold, dim4(100), a);
86}

Callers

nothing calls this directly

Calls 2

writeMethod · 0.80
dim4Class · 0.50

Tested by

no test coverage detected