pub fn batch_scale_offset_f64(
values: &[f64],
scale: f64,
offset: f64,
) -> Vec<f64>Expand description
SIMD-friendly scale and offset operation.
Applies v * scale + offset to all values.
Common operation for data transformation.
ยงExample
use presentar_core::simd::batch_scale_offset_f64;
let values = vec![0.0, 0.5, 1.0];
// Map [0, 1] to [100, 200]
let transformed = batch_scale_offset_f64(&values, 100.0, 100.0);
assert_eq!(transformed, vec![100.0, 150.0, 200.0]);