apply_cmp_f

Function apply_cmp_f 

Source
pub fn apply_cmp_f<T>(
    lhs: &[T],
    rhs: &[T],
    mask: Option<&Bitmask>,
    op: ComparisonOperator,
) -> Result<BooleanArray<()>, KernelError>
where T: Float + Numeric + Copy + 'static,
Expand description

Applies comparison operations between floating-point arrays with IEEE 754 compliance.

Performs element-wise floating-point comparisons with proper handling of IEEE 754 special values (NaN, infinity). Implements comprehensive comparison semantics for floating-point data including set operations and null-aware processing.

§Parameters

  • lhs - Left-hand side floating-point array for comparison
  • rhs - Right-hand side floating-point array for comparison
  • mask - Optional bitmask indicating valid elements in arrays
  • op - Comparison operator specifying the comparison type to perform

§Returns

Returns Result<BooleanArray<()>, KernelError> containing:

  • Success: Boolean array with IEEE 754 compliant comparison results
  • Error: KernelError if floating-point comparison fails