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

Function gfor

test/approx1.cpp:383–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381
382 array outGFOR(pos.dims());
383 gfor(seq i, pos.dims(1)) {
384 outGFOR(span, i) =
385 approx1(input(span, i), pos(span, i), AF_INTERP_NEAREST);
386 }
387
388 ASSERT_NEAR(0, sum<float>(abs(outBatch - outSerial)), 1e-3);
389 ASSERT_NEAR(0, sum<float>(abs(outBatch - outGFOR)), 1e-3);

Callers

nothing calls this directly

Calls 1

approx1Function · 0.50

Tested by

no test coverage detected