| 92 | namespace { |
| 93 | template<typename T> |
| 94 | inline af_array uniformDistribution_(const dim4 &dims, RandomEngine *e) { |
| 95 | if (e->type == AF_RANDOM_ENGINE_MERSENNE_GP11213) { |
| 96 | return getHandle(uniformDistribution<T>(dims, e->pos, e->sh1, e->sh2, |
| 97 | e->mask, e->recursion_table, |
| 98 | e->temper_table, e->state)); |
| 99 | } else { |
| 100 | return getHandle( |
| 101 | uniformDistribution<T>(dims, e->type, *(e->seed), *(e->counter))); |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | template<typename T> |
| 106 | inline af_array normalDistribution_(const dim4 &dims, RandomEngine *e) { |
nothing calls this directly
no test coverage detected