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

Function randuTest

test/random.cpp:89–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87
88template<typename T>
89void randuTest(dim4 &dims) {
90 SUPPORTED_TYPE_CHECK(T);
91
92 af_array outArray = 0;
93 ASSERT_SUCCESS(af_randu(&outArray, dims.ndims(), dims.get(),
94 (af_dtype)dtype_traits<T>::af_type));
95 ASSERT_EQ(af_sync(-1), AF_SUCCESS);
96 if (outArray != 0) af_release_array(outArray);
97}
98
99template<typename T>
100void randnTest(dim4 &dims) {

Callers

nothing calls this directly

Calls 5

af_randuFunction · 0.50
af_syncFunction · 0.50
af_release_arrayFunction · 0.50
ndimsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected