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

Function TEST

test/where.cpp:121–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121TEST(Where, MaxDim) {
122 const size_t largeDim = 65535 * 32 + 2;
123
124 array input = range(dim4(1, largeDim), 1);
125 array output = where(input % 2 == 0);
126 array gold = 2 * range(largeDim / 2);
127 ASSERT_ARRAYS_EQ(gold.as(u32), output);
128
129 input = range(dim4(1, 1, 1, largeDim), 3);
130 output = where(input % 2 == 0);
131 ASSERT_ARRAYS_EQ(gold.as(u32), output);
132}
133
134TEST(Where, ISSUE_1259) {
135 array a = randu(10, 10, 10);

Callers

nothing calls this directly

Calls 6

randuFunction · 0.85
asMethod · 0.80
rangeFunction · 0.50
dim4Class · 0.50
whereFunction · 0.50
elementsMethod · 0.45

Tested by

no test coverage detected