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

Method testSpclOutArray

test/approx2.cpp:839–850  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

837 }
838
839 void testSpclOutArray(TestOutputArrayType out_array_type) {
840 SUPPORTED_TYPE_CHECK(T);
841
842 af_array out = 0;
843 TestOutputArrayInfo metadata(out_array_type);
844 genTestOutputArray(&out, gold_dims.ndims(), gold_dims.get(),
845 (af_dtype)dtype_traits<T>::af_type, &metadata);
846
847 ASSERT_SUCCESS(
848 af_approx2_v2(&out, in, pos1, pos2, AF_INTERP_LINEAR, 0));
849 ASSERT_SPECIAL_ARRAYS_EQ(gold, out, &metadata);
850 }
851
852 void testSpclOutArrayUniform(TestOutputArrayType out_array_type) {
853 SUPPORTED_TYPE_CHECK(T);

Callers 1

TYPED_TESTFunction · 0.45

Calls 4

genTestOutputArrayFunction · 0.85
af_approx2_v2Function · 0.50
ndimsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected