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

Function gfor

test/approx2.cpp:366–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364
365 array outGFOR(pos.dims());
366 gfor(seq i, pos.dims(2)) {
367 outGFOR(span, span, i) =
368 approx2(input(span, span, i), pos(span, span, i),
369 qos(span, span, i), AF_INTERP_NEAREST);
370 }
371
372 ASSERT_NEAR(0, sum<float>(abs(outBatch - outSerial)), 1e-3);
373 ASSERT_NEAR(0, sum<float>(abs(outBatch - outGFOR)), 1e-3);

Callers

nothing calls this directly

Calls 1

approx2Function · 0.50

Tested by

no test coverage detected