Module math

Source
Expand description

Module containing mathematical utilities.

Functionsยง

argmax
Returns the index of the maximum value in an iterator, or None if the iterator is empty.
argmax_filtered
Returns the index of the maximum value approved by a filter in an iterator, or None if no element is approved by the filter.
argmin
Returns the index of the minimum value in an iterator, or None if the iterator is empty.
argmin_filtered
Returns the index of the minimum value approved by a filter in an iterator, or None if no element is approved by the filter.