MCPcopy Create free account
hub / github.com/numpy/numpy / max

Function max

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

Source from the content-addressed store, hash-verified

6812min.__doc__ = MaskedArray.min.__doc__
6813
6814def max(obj, axis=None, out=None, fill_value=None, keepdims=np._NoValue):
6815 kwargs = {} if keepdims is np._NoValue else {'keepdims': keepdims}
6816
6817 try:
6818 return obj.max(axis=axis, fill_value=fill_value, out=out, **kwargs)
6819 except (AttributeError, TypeError):
6820 # If obj doesn't have a max method, or if the method doesn't accept a
6821 # fill_value argument
6822 return asanyarray(obj).max(axis=axis, fill_value=fill_value,
6823 out=out, **kwargs)
6824max.__doc__ = MaskedArray.max.__doc__
6825
6826

Callers 15

test_minmax_funcMethod · 0.90
assert_array_compareFunction · 0.90
_gen_alignment_dataFunction · 0.90
__repr__Method · 0.70
testMaxMethod · 0.50
testMaxMethod · 0.50
testMaxMethod · 0.50
gen_rst_tableMethod · 0.50
ediff1dFunction · 0.50
in1dFunction · 0.50
genfromtxtFunction · 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