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

Function TEST

test/wrap.cpp:183–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181WRAP_INIT(44, 300, 100, 15, 10, 15, 10, 14, 9);
182
183TEST(Wrap, MaxDim) {
184 const size_t largeDim = 65535 + 1;
185 array input = range(5, 5, 1, largeDim);
186
187 const unsigned wx = 5;
188 const unsigned wy = 5;
189 const unsigned sx = 5;
190 const unsigned sy = 5;
191 const unsigned px = 0;
192 const unsigned py = 0;
193
194 array unwrapped = unwrap(input, wx, wy, sx, sy, px, py);
195 array output = wrap(unwrapped, 5, 5, wx, wy, sx, sy, px, py);
196
197 ASSERT_ARRAYS_EQ(output, input);
198}
199
200TEST(Wrap, DocSnippet) {
201 //! [ex_wrap_1]

Callers

nothing calls this directly

Calls 4

rangeFunction · 0.50
unwrapFunction · 0.50
wrapFunction · 0.50
dim4Class · 0.50

Tested by

no test coverage detected