pub fn max_element_simd<F>(a: &ArrayView1<'_, F>) -> Fwhere
F: Float + SimdUnifiedOps,Expand description
SIMD-accelerated maximum element
Finds the maximum value in the array.
§Arguments
a- Input array
§Returns
Maximum element value
§Examples
use scirs2_core::ndarray::array;
use scirs2_core::ndarray_ext::elementwise::max_element_simd;
let x = array![3.0_f64, 1.0, 4.0, 1.0, 5.0, 9.0, 2.0, 6.0];
let max = max_element_simd::<f64>(&x.view());
assert!((max - 9.0).abs() < 1e-14);§Use Cases
- Finding peak values
- Range calculation
- Normalization (min-max scaling)
- Softmax numerator stability