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

Method testSpclOutArrayUniform

test/approx1.cpp:921–932  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

919 }
920
921 void testSpclOutArrayUniform(TestOutputArrayType out_array_type) {
922 SUPPORTED_TYPE_CHECK(T);
923
924 af_array out = 0;
925 TestOutputArrayInfo metadata(out_array_type);
926 genTestOutputArray(&out, gold_dims.ndims(), gold_dims.get(),
927 (af_dtype)dtype_traits<T>::af_type, &metadata);
928
929 ASSERT_SUCCESS(af_approx1_uniform_v2(&out, in, pos, 0, 0.0, 1.0,
930 AF_INTERP_LINEAR, 0.f));
931 ASSERT_SPECIAL_ARRAYS_EQ(gold, out, &metadata);
932 }
933};
934
935TYPED_TEST_SUITE(Approx1V2, TestTypes);

Callers 1

TYPED_TESTFunction · 0.45

Calls 4

genTestOutputArrayFunction · 0.85
af_approx1_uniform_v2Function · 0.50
ndimsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected