Skip to main content

argmax

Function argmax 

Source
pub fn argmax(row: &[f32]) -> Option<(usize, f32)>
Expand description

Returns the (index, value) of the maximum element of row.

On ties the last maximal index is returned, matching Iterator::max_by semantics (which the previous decode loop relied on). Returns None for an empty row.