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

Function TEST

test/resize.cpp:364–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362using af::span;
363
364TEST(Resize, CPP) {
365 vector<dim4> numDims;
366 vector<vector<float>> in;
367 vector<vector<float>> tests;
368 readTests<float, float, float>(string(TEST_DIR "/resize/square.test"),
369 numDims, in, tests);
370
371 dim4 dims = numDims[0];
372 array input(dims, &(in[0].front()));
373 array output = resize(input, 16, 16);
374
375 dim4 goldDims(16, 16, dims[2], dims[3]);
376 ASSERT_VEC_ARRAY_NEAR(tests[0], goldDims, output, 0.0001);
377}
378
379TEST(ResizeScale1, CPP) {
380 vector<dim4> numDims;

Callers

nothing calls this directly

Calls 6

roundFunction · 0.85
randuFunction · 0.85
constantFunction · 0.85
absFunction · 0.70
resizeFunction · 0.50
dim4Class · 0.50

Tested by

no test coverage detected