| 104 | |
| 105 | template<typename T> |
| 106 | inline af_array normalDistribution_(const dim4 &dims, RandomEngine *e) { |
| 107 | if (e->type == AF_RANDOM_ENGINE_MERSENNE_GP11213) { |
| 108 | return getHandle(normalDistribution<T>(dims, e->pos, e->sh1, e->sh2, |
| 109 | e->mask, e->recursion_table, |
| 110 | e->temper_table, e->state)); |
| 111 | } else { |
| 112 | return getHandle( |
| 113 | normalDistribution<T>(dims, e->type, *(e->seed), *(e->counter))); |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | void validateRandomType(const af_random_engine_type type) { |
| 118 | if ((type != AF_RANDOM_ENGINE_PHILOX_4X32_10) && |
nothing calls this directly
no test coverage detected