argmax static method
Returns the indices of the maximum values of the given array.
Implementation
static List<int> argmax(List<double> array ) {
final max = getMaxFromArray( array );
final indices = <int>[];
for ( int i = 0, l = array.length; i < l; i ++ ) {
if ( array[ i ] == max ) indices.add( i );
}
return indices;
}