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

Function randnTest

test/random.cpp:100–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98
99template<typename T>
100void randnTest(dim4 &dims) {
101 SUPPORTED_TYPE_CHECK(T);
102
103 af_array outArray = 0;
104 ASSERT_SUCCESS(af_randn(&outArray, dims.ndims(), dims.get(),
105 (af_dtype)dtype_traits<T>::af_type));
106 ASSERT_EQ(af_sync(-1), AF_SUCCESS);
107 if (outArray != 0) af_release_array(outArray);
108}
109
110#define RAND(d0, d1, d2, d3) \
111 TYPED_TEST(Random, randu_##d0##_##d1##_##d2##_##d3) { \

Callers

nothing calls this directly

Calls 5

af_randnFunction · 0.50
af_syncFunction · 0.50
af_release_arrayFunction · 0.50
ndimsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected