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

Method Float32

cpp/src/arrow/testing/random.cc:299–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297}
298
299std::shared_ptr<Array> RandomArrayGenerator::Float32(int64_t size, float min, float max,
300 double null_probability,
301 double nan_probability,
302 int64_t alignment,
303 MemoryPool* memory_pool) {
304 using OptionType =
305 GenerateOptions<float, ::arrow::random::uniform_real_distribution<float>>;
306 OptionType options(seed(), min, max, null_probability, nan_probability);
307 return GenerateNumericArray<FloatType, OptionType>(size, options, alignment,
308 memory_pool);
309}
310
311std::shared_ptr<Array> RandomArrayGenerator::Float64(int64_t size, double min, double max,
312 double null_probability,

Callers 8

ArrayRangeEqualsFloat32Function · 0.45
GenerateMethod · 0.45
TEST_PFunction · 0.45
SampleDataFunction · 0.45
AllColumnsWithEncodingsFunction · 0.45

Calls 1

seedFunction · 0.85

Tested by 4

GenerateMethod · 0.36
TEST_PFunction · 0.36