Expand description
§Window Functions Kernels Module - High-Performance Analytical Window Operations
Advanced window function kernels for sliding window computations, ranking operations, and positional analytics with SIMD acceleration and null-aware semantics. Backbone of time series analysis, analytical SQL window functions, and chunked streaming computations.
§Core Operations
- Moving averages: Rolling mean calculations with configurable window sizes
- Cumulative functions: Running sums, products, and statistical aggregations
- Ranking functions: ROW_NUMBER, RANK, DENSE_RANK with tie-handling strategies
- Lead/lag operations: Positional value access with configurable offsets
- Percentile functions: Moving quantile calculations with interpolation support
- Window aggregates: MIN, MAX, SUM operations over sliding windows
Constants§
- W8
- Auto-generated SIMD lane widths from build.rs
SIMD lane count for 8-bit elements (u8, i8).
Determined at build time based on target architecture capabilities,
or overridden via
SIMD_LANES_OVERRIDE. - W16
- SIMD lane count for 16-bit elements (u16, i16).
Determined at build time based on target architecture capabilities,
or overridden via
SIMD_LANES_OVERRIDE. - W32
- SIMD lane count for 32-bit elements (u32, i32, f32).
Determined at build time based on target architecture capabilities,
or overridden via
SIMD_LANES_OVERRIDE. - W64
- SIMD lane count for 64-bit elements (u64, i64, f64).
Determined at build time based on target architecture capabilities,
or overridden via
SIMD_LANES_OVERRIDE.
Functions§
- dense_
rank_ float - Computes SQL DENSE_RANK() ranking for floating-point data with IEEE 754 compliance.
- dense_
rank_ int - Computes SQL DENSE_RANK() ranking for integer data with consecutive rank assignment.
- dense_
rank_ str - Computes SQL DENSE_RANK() ranking for string data with lexicographic dense ordering.
- lag_
float - Accesses values from previous positions in floating-point arrays with IEEE 754 compliance.
- lag_int
- Accesses values from previous positions in integer arrays with configurable offset.
- lag_str
- Accesses string values from previous positions with UTF-8 string handling.
- lead_
float - Accesses values from future positions in floating-point arrays with IEEE 754 compliance.
- lead_
int - Accesses values from future positions in integer arrays with configurable offset.
- lead_
str - Accesses string values from future positions with efficient UTF-8 processing.
- rank_
float - Computes standard SQL ROW_NUMBER() ranking for floating-point data with IEEE 754 compliance.
- rank_
int - Computes standard SQL ROW_NUMBER() ranking for integer data with tie handling.
- rank_
str - Computes standard SQL ROW_NUMBER() ranking for string data with lexicographic ordering.
- rolling_
count - Computes rolling counts of elements within sliding windows for positional analysis.
- rolling_
max_ float - Computes rolling maximum values over floating-point data with IEEE 754 compliance.
- rolling_
max_ int - Computes rolling maximum values over integer data within sliding windows.
- rolling_
mean_ float - Computes rolling arithmetic means over floating-point data with IEEE 754 compliance.
- rolling_
mean_ int - Computes rolling arithmetic means over integer data with high-precision floating-point output.
- rolling_
min_ float - Computes rolling minimum values over floating-point data with IEEE 754 compliance.
- rolling_
min_ int - For min, we skip that very first
windowslot so that the first non-zero result appears one step later. Computes rolling minimum values over integer data within sliding windows. - rolling_
product_ bool - Computes rolling logical AND operations over boolean data within sliding windows.
- rolling_
product_ float - Computes rolling products over floating-point data with IEEE 754 mathematical semantics.
- rolling_
product_ int - Computes rolling products over a sliding window for integer data with overflow protection.
- rolling_
sum_ bool - Computes rolling sums over boolean data, counting true values within sliding windows.
- rolling_
sum_ float - Computes rolling sums over a sliding window for floating-point data with IEEE 754 compliance.
- rolling_
sum_ int - Computes rolling sums over a sliding window for integer data with null-aware semantics.
- shift_
float - Shifts floating-point array elements with IEEE 754 compliance and bidirectional support.
- shift_
int - Shifts integer array elements by specified offset with bidirectional support.
- shift_
str - Shifts string array elements with UTF-8 integrity and bidirectional offset support.