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

Method testSpclOutArray

test/transform.cpp:391–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389 }
390
391 void testSpclOutArray(TestOutputArrayType out_array_type) {
392 SUPPORTED_TYPE_CHECK(T);
393 IMAGEIO_ENABLED_CHECK();
394
395 af_array out = 0;
396 TestOutputArrayInfo metadata(out_array_type);
397 genTestOutputArray(&out, gold_dims.ndims(), gold_dims.get(),
398 (af_dtype)dtype_traits<T>::af_type, &metadata);
399 ASSERT_SUCCESS(
400 af_transform_v2(&out, in, transform, odim0, odim1, method, invert));
401
402 assertSpclArraysTransform(gold, out, &metadata);
403 }
404};
405
406TYPED_TEST_SUITE(TransformV2, TestTypes);

Callers 1

TYPED_TESTFunction · 0.45

Calls 4

genTestOutputArrayFunction · 0.85
af_transform_v2Function · 0.50
ndimsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected