reduce_min_max_u64

Function reduce_min_max_u64 

Source
pub fn reduce_min_max_u64(
    data: &[u64],
    mask: Option<&Bitmask>,
    null_count: Option<usize>,
) -> Option<(u64, u64)>
Expand description

Finds the minimum and maximum values in a numeric slice.

Uses SIMD operations when available for optimal performance. Handles null values through optional bitmask.

§Arguments

  • data - The slice of numeric values to process
  • mask - Optional bitmask indicating valid/invalid elements
  • null_count - Optional count of null values for optimisation

§Returns

Some((min, max)) if any valid values exist, None if all values are null