aboutsummaryrefslogtreecommitdiff
path: root/support/Random.h
diff options
context:
space:
mode:
Diffstat (limited to 'support/Random.h')
-rw-r--r--support/Random.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/support/Random.h b/support/Random.h
index 7658e6d529..1a804d3290 100644
--- a/support/Random.h
+++ b/support/Random.h
@@ -25,6 +25,7 @@
#define ARM_COMPUTE_MISC_RANDOM_H
#include "arm_compute/core/Error.h"
+
#include "utils/Utils.h"
#include <random>
@@ -47,7 +48,9 @@ public:
static constexpr bool is_fp_16bit = std::is_same<T, half>::value || std::is_same<T, bfloat16>::value;
static constexpr bool is_integral = std::is_integral<T>::value && !is_fp_16bit;
- using fp_dist = typename std::conditional<is_fp_16bit, arm_compute::utils::uniform_real_distribution_16bit<T>, std::uniform_real_distribution<T>>::type;
+ using fp_dist = typename std::conditional<is_fp_16bit,
+ arm_compute::utils::uniform_real_distribution_16bit<T>,
+ std::uniform_real_distribution<T>>::type;
using DT = typename std::conditional<is_integral, std::uniform_int_distribution<T>, fp_dist>::type;
using result_type = T;
using range_pair = std::pair<result_type, result_type>;
@@ -62,7 +65,7 @@ public:
: _distributions(), _selector()
{
result_type clow = low;
- for(const auto &erange : exclude_ranges)
+ for (const auto &erange : exclude_ranges)
{
result_type epsilon = is_integral ? result_type(1) : result_type(std::numeric_limits<T>::epsilon());