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

Method Float16

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

Source from the content-addressed store, hash-verified

278}
279
280std::shared_ptr<Array> RandomArrayGenerator::Float16(
281 int64_t size, util::Float16 min, util::Float16 max, double null_probability,
282 double nan_probability, int64_t alignment, MemoryPool* memory_pool) {
283 using OptionType =
284 GenerateOptions<util::Float16, ::arrow::random::uniform_real_distribution<float>>;
285 OptionType options(seed(), min, max, null_probability, nan_probability);
286 return GenerateNumericArray<HalfFloatType, OptionType>(size, options, alignment,
287 memory_pool);
288}
289
290std::shared_ptr<Array> RandomArrayGenerator::Float32(int64_t size, float min, float max,
291 double null_probability,

Callers

nothing calls this directly

Calls 1

seedFunction · 0.85

Tested by

no test coverage detected