Did I find the right examples for you? yes no

# numpy.core.umath.maximum.reduce

All Samples(14)  |  Call(14)  |  Derive(0)  |  Import(0)
reduce(a, axis=0, dtype=None, out=None, keepdims=False)

Reduces `a`'s dimension by one, by applying ufunc along one axis.

Let :math:`a.shape = (N_0, ..., N_i, ..., N_{M-1})`.  Then
:math:`ufunc.reduce(a, axis=i)[k_0, ..,k_{i-1}, k_{i+1}, .., k_{M-1}]` =
the result of iterating `j` over :math:`range(N_i)`, cumulatively applying
ufunc to each :math:`a[k_0, ..,k_{i-1}, j, k_{i+1}, .., k_{M-1}]`.
For a one-dimensional array, reduce produces results equivalent to:
::(more...)

def _amax(a, axis=None, out=None, keepdims=False):
return um.maximum.reduce(a, axis=axis,
out=out, keepdims=keepdims)

def _amin(a, axis=None, out=None, keepdims=False):

def _amax(a, axis=None, out=None, keepdims=False):
return um.maximum.reduce(a, axis=axis,
out=out, keepdims=keepdims)

def _amin(a, axis=None, out=None, keepdims=False):

t = filled(target)
else:
t = umath.maximum.reduce(filled(target, maximum_fill_value(target)), axis)

t = filled(target)
else:
t = umath.maximum.reduce(filled(target, maximum_fill_value(target)), axis)

t = filled(target)
else:
t = umath.maximum.reduce(filled(target, maximum_fill_value(target)), axis)

t = filled(target)
else:
t = umath.maximum.reduce(filled(target, maximum_fill_value(target)), axis)