| 87 | |
| 88 | template<typename T> |
| 89 | void 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 | |
| 99 | template<typename T> |
| 100 | void randnTest(dim4 &dims) { |
nothing calls this directly
no test coverage detected