Function rgsl::blas::level1::icamax

source ·
pub fn icamax(x: &VectorComplexF32) -> u32
Expand description

This function returns the index of the largest element of the vector x. The largest element is determined by its absolute magnitude for real vectors and by the sum of the magnitudes of the real and imaginary parts |\Re(x_i)| + |\Im(x_i)| for complex vectors. If the largest value occurs several times then the index of the first occurrence is returned.