MCPcopy Index your code
hub / github.com/numpy/numpy / min

Method min

numpy/_core/getlimits.py:415–425  ·  view source on GitHub ↗

Minimum value of given dtype.

(self)

Source from the content-addressed store, hash-verified

413
414 @property
415 def min(self):
416 """Minimum value of given dtype."""
417 if self.kind == 'u':
418 return 0
419 else:
420 try:
421 val = iinfo._min_vals[self.key]
422 except KeyError:
423 val = int(-(1 << (self.bits - 1)))
424 iinfo._min_vals[self.key] = val
425 return val
426
427 @property
428 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