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

Method testSpclOutArray

test/approx1.cpp:909–919  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

907 }
908
909 void testSpclOutArray(TestOutputArrayType out_array_type) {
910 SUPPORTED_TYPE_CHECK(T);
911
912 af_array out = 0;
913 TestOutputArrayInfo metadata(out_array_type);
914 genTestOutputArray(&out, gold_dims.ndims(), gold_dims.get(),
915 (af_dtype)dtype_traits<T>::af_type, &metadata);
916
917 ASSERT_SUCCESS(af_approx1_v2(&out, in, pos, AF_INTERP_LINEAR, 0));
918 ASSERT_SPECIAL_ARRAYS_EQ(gold, out, &metadata);
919 }
920
921 void testSpclOutArrayUniform(TestOutputArrayType out_array_type) {
922 SUPPORTED_TYPE_CHECK(T);

Callers 1

TYPED_TESTFunction · 0.45

Calls 4

genTestOutputArrayFunction · 0.85
af_approx1_v2Function · 0.50
ndimsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected