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

Method Float32

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

Source from the content-addressed store, hash-verified

288}
289
290std::shared_ptr<Array> RandomArrayGenerator::Float32(int64_t size, float min, float max,
291 double null_probability,
292 double nan_probability,
293 int64_t alignment,
294 MemoryPool* memory_pool) {
295 using OptionType =
296 GenerateOptions<float, ::arrow::random::uniform_real_distribution<float>>;
297 OptionType options(seed(), min, max, null_probability, nan_probability);
298 return GenerateNumericArray<FloatType, OptionType>(size, options, alignment,
299 memory_pool);
300}
301
302std::shared_ptr<Array> RandomArrayGenerator::Float64(int64_t size, double min, double max,
303 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