MCPcopy
hub / github.com/numpy/numpy / min

Function min

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

Source from the content-addressed store, hash-verified

7003 return result
7004
7005def min(obj, axis=None, out=None, fill_value=None, keepdims=np._NoValue):
7006 kwargs = {} if keepdims is np._NoValue else {'keepdims': keepdims}
7007
7008 try:
7009 return obj.min(axis=axis, fill_value=fill_value, out=out, **kwargs)
7010 except (AttributeError, TypeError):
7011 # If obj doesn't have a min method, or if the method doesn't accept a
7012 # fill_value argument
7013 return asanyarray(obj).min(axis=axis, fill_value=fill_value,
7014 out=out, **kwargs)
7015
7016
7017min.__doc__ = MaskedArray.min.__doc__

Callers 15

test_minmax_funcMethod · 0.90
testMinMethod · 0.50
testMinMethod · 0.50
testMinMethod · 0.50
mainFunction · 0.50
performance.pyFile · 0.50
_hist_bin_stoneFunction · 0.50
_hist_bin_autoFunction · 0.50
_get_indentFunction · 0.50
mintypecodeFunction · 0.50
loadFunction · 0.50

Calls 2

asanyarrayFunction · 0.85
minMethod · 0.45

Tested by 11

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