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

Method testSpclOutArrayUniform

test/approx2.cpp:852–863  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

850 }
851
852 void testSpclOutArrayUniform(TestOutputArrayType out_array_type) {
853 SUPPORTED_TYPE_CHECK(T);
854
855 af_array out = 0;
856 TestOutputArrayInfo metadata(out_array_type);
857 genTestOutputArray(&out, gold_dims.ndims(), gold_dims.get(),
858 (af_dtype)dtype_traits<T>::af_type, &metadata);
859
860 ASSERT_SUCCESS(af_approx2_uniform_v2(&out, in, pos1, 0, 0.0, 1.0, pos2,
861 1, 0.0, 1.0, AF_INTERP_LINEAR, 0));
862 ASSERT_SPECIAL_ARRAYS_EQ(gold, out, &metadata);
863 }
864};
865
866TYPED_TEST_SUITE(Approx2V2, TestTypes);

Callers 1

TYPED_TESTFunction · 0.45

Calls 4

genTestOutputArrayFunction · 0.85
af_approx2_uniform_v2Function · 0.50
ndimsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected