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

Method min

numpy/core/getlimits.py:697–707  ·  view source on GitHub ↗

Minimum value of given dtype.

(self)

Source from the content-addressed store, hash-verified

695
696 @property
697 def min(self):
698 """Minimum value of given dtype."""
699 if self.kind == 'u':
700 return 0
701 else:
702 try:
703 val = iinfo._min_vals[self.key]
704 except KeyError:
705 val = int(-(1 << (self.bits-1)))
706 iinfo._min_vals[self.key] = val
707 return val
708
709 @property
710 def max(self):

Callers 13

fillFormatMethod · 0.45
__init__Method · 0.45
__init__Method · 0.45
test_math_max_minMethod · 0.45
test_attributesMethod · 0.45
test_scalar_reductionMethod · 0.45
test_minmax_blockedMethod · 0.45
test_lower_alignMethod · 0.45
test_reduce_reorderMethod · 0.45
test_combinationsMethod · 0.45
test_combinationsMethod · 0.45

Calls

no outgoing calls

Tested by 10

test_math_max_minMethod · 0.36
test_attributesMethod · 0.36
test_scalar_reductionMethod · 0.36
test_minmax_blockedMethod · 0.36
test_lower_alignMethod · 0.36
test_reduce_reorderMethod · 0.36
test_combinationsMethod · 0.36
test_combinationsMethod · 0.36
test_clip_complexMethod · 0.36