MCPcopy
hub / github.com/numpy/numpy / max

Function max

numpy/ma/core.py:7019–7028  ·  view source on GitHub ↗
(obj, axis=None, out=None, fill_value=None, keepdims=np._NoValue)

Source from the content-addressed store, hash-verified

7017min.__doc__ = MaskedArray.min.__doc__
7018
7019def max(obj, axis=None, out=None, fill_value=None, keepdims=np._NoValue):
7020 kwargs = {} if keepdims is np._NoValue else {'keepdims': keepdims}
7021
7022 try:
7023 return obj.max(axis=axis, fill_value=fill_value, out=out, **kwargs)
7024 except (AttributeError, TypeError):
7025 # If obj doesn't have a max method, or if the method doesn't accept a
7026 # fill_value argument
7027 return asanyarray(obj).max(axis=axis, fill_value=fill_value,
7028 out=out, **kwargs)
7029
7030
7031max.__doc__ = MaskedArray.max.__doc__

Callers 15

test_minmax_funcMethod · 0.90
__repr__Method · 0.70
testMaxMethod · 0.50
testMaxMethod · 0.50
testMaxMethod · 0.50
mainFunction · 0.50
polydivFunction · 0.50
_hist_bin_stoneFunction · 0.50
_hist_bin_autoFunction · 0.50
ediff1dFunction · 0.50
merge_arraysFunction · 0.50
append_fieldsFunction · 0.50

Calls 2

asanyarrayFunction · 0.85
maxMethod · 0.45

Tested by 15

test_minmax_funcMethod · 0.72
testMaxMethod · 0.40
testMaxMethod · 0.40
testMaxMethod · 0.40
test_nMethod · 0.40
test_kron_shapeMethod · 0.40
test_testMinMaxMethod · 0.40
test_legaddMethod · 0.40
test_legsubMethod · 0.40
test_hermaddMethod · 0.40
test_hermsubMethod · 0.40
test_hermeaddMethod · 0.40