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

Function min

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

Source from the content-addressed store, hash-verified

6800 return result
6801
6802def min(obj, axis=None, out=None, fill_value=None, keepdims=np._NoValue):
6803 kwargs = {} if keepdims is np._NoValue else {'keepdims': keepdims}
6804
6805 try:
6806 return obj.min(axis=axis, fill_value=fill_value, out=out, **kwargs)
6807 except (AttributeError, TypeError):
6808 # If obj doesn't have a min method, or if the method doesn't accept a
6809 # fill_value argument
6810 return asanyarray(obj).min(axis=axis, fill_value=fill_value,
6811 out=out, **kwargs)
6812min.__doc__ = MaskedArray.min.__doc__
6813
6814def max(obj, axis=None, out=None, fill_value=None, keepdims=np._NoValue):

Callers 15

test_minmax_funcMethod · 0.90
testMinMethod · 0.50
testMinMethod · 0.50
testMinMethod · 0.50
performance.pyFile · 0.50
in1dFunction · 0.50
loadFunction · 0.50
_readFunction · 0.50
_set_reflect_bothFunction · 0.50
_set_wrap_bothFunction · 0.50
_get_indentFunction · 0.50

Calls 2

asanyarrayFunction · 0.85
minMethod · 0.45

Tested by 10

test_minmax_funcMethod · 0.72
testMinMethod · 0.40
testMinMethod · 0.40
testMinMethod · 0.40
test_empty_a_bMethod · 0.40
check_qrMethod · 0.40
test_qr_emptyMethod · 0.40
check_qr_stackedMethod · 0.40
test_testMinMaxMethod · 0.40
_sintMethod · 0.40