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

Function GenerateBenchmarkDataFloatImpl

cpp/src/parquet/benchmark_util.cc:53–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51
52template <typename T>
53void GenerateBenchmarkDataFloatImpl(uint32_t size, uint32_t seed, T* data,
54 std::vector<uint8_t>* heap, uint32_t) {
55 static_assert(std::is_floating_point_v<T>);
56 heap->clear();
57 std::default_random_engine gen(seed);
58 std::uniform_real_distribution<T> d(std::numeric_limits<T>::lowest(),
59 std::numeric_limits<T>::max());
60 for (uint32_t i = 0; i < size; ++i) {
61 data[i] = d(gen);
62 }
63}
64
65} // namespace
66

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected