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

Function TEST

test/iota.cpp:105–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103using af::iota;
104
105TEST(Iota, CPP) {
106 dim4 idims(23, 15, 1, 1);
107 dim4 tdims(2, 2, 1, 1);
108 dim4 fulldims;
109 for (unsigned i = 0; i < 4; i++) { fulldims[i] = idims[i] * tdims[i]; }
110
111 array output = iota(idims, tdims);
112 array tileArray =
113 tile(moddims(range(dim4(idims.elements()), 0), idims), tdims);
114
115 ASSERT_ARRAYS_EQ(tileArray, output);
116}

Callers

nothing calls this directly

Calls 6

moddimsFunction · 0.85
iotaFunction · 0.50
tileFunction · 0.50
rangeFunction · 0.50
dim4Class · 0.50
elementsMethod · 0.45

Tested by

no test coverage detected