| 407 | |
| 408 | template<typename T> |
| 409 | void normalDistributionCBRNG(T *out, size_t elements, |
| 410 | af_random_engine_type type, const uintl seed, |
| 411 | uintl counter) { |
| 412 | switch (type) { |
| 413 | case AF_RANDOM_ENGINE_PHILOX_4X32_10: |
| 414 | philoxNormal(out, elements, seed, counter); |
| 415 | break; |
| 416 | case AF_RANDOM_ENGINE_THREEFRY_2X32_16: |
| 417 | threefryNormal(out, elements, seed, counter); |
| 418 | break; |
| 419 | default: |
| 420 | AF_ERROR("Random Engine Type Not Supported", AF_ERR_NOT_SUPPORTED); |
| 421 | } |
| 422 | } |
| 423 | |
| 424 | } // namespace kernel |
| 425 | } // namespace cpu |
nothing calls this directly
no test coverage detected