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

Function TEST

test/math.cpp:138–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136#endif
137
138TEST(Math, Not) {
139 array a = randu(5, 5, b8);
140 array b = !a;
141 char *ha = a.host<char>();
142 char *hb = b.host<char>();
143
144 for (int i = 0; i < a.elements(); i++) { ASSERT_EQ(ha[i] ^ hb[i], true); }
145
146 af_free_host(ha);
147 af_free_host(hb);
148}
149
150TEST(Math, Modulus) {
151 af::dim4 shape(2, 2);

Callers

nothing calls this directly

Calls 6

randuFunction · 0.85
constantFunction · 0.85
asMethod · 0.80
af_free_hostFunction · 0.50
arrayClass · 0.50
elementsMethod · 0.45

Tested by

no test coverage detected