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

Method __init__

numpy/core/getlimits.py:685–694  ·  view source on GitHub ↗
(self, int_type)

Source from the content-addressed store, hash-verified

683 _max_vals = {}
684
685 def __init__(self, int_type):
686 try:
687 self.dtype = numeric.dtype(int_type)
688 except TypeError:
689 self.dtype = numeric.dtype(type(int_type))
690 self.kind = self.dtype.kind
691 self.bits = self.dtype.itemsize * 8
692 self.key = "%s%d" % (self.kind, self.bits)
693 if self.kind not in 'iu':
694 raise ValueError("Invalid integer data type %r." % (self.kind,))
695
696 @property
697 def min(self):

Callers

nothing calls this directly

Calls 1

dtypeMethod · 0.45

Tested by

no test coverage detected