MCPcopy Create free account
hub / github.com/apache/arrow / random_float16_numbers

Function random_float16_numbers

cpp/src/parquet/test_util.cc:98–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98void random_float16_numbers(int n, uint32_t seed, ::arrow::util::Float16 min_value,
99 ::arrow::util::Float16 max_value, uint16_t* out) {
100 std::vector<float> values(n);
101 random_numbers(n, seed, static_cast<float>(min_value), static_cast<float>(max_value),
102 values.data());
103 for (int i = 0; i < n; ++i) {
104 out[i] = ::arrow::util::Float16(values[i]).bits();
105 }
106}
107
108void random_fixed_byte_array(int n, uint32_t seed, uint8_t* buf, int len, FLBA* out) {
109 std::default_random_engine gen(seed);

Callers 2

NonNullArrayFunction · 0.85
NullableArrayFunction · 0.85

Calls 3

random_numbersFunction · 0.85
Float16Class · 0.70
dataMethod · 0.45

Tested by

no test coverage detected