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

Method __str__

numpy/core/_machar.py:339–352  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

337 self._str_resolution = float_to_str(resolution)
338
339 def __str__(self):
340 fmt = (
341 'Machine parameters for %(title)s\n'
342 '---------------------------------------------------------------------\n'
343 'ibeta=%(ibeta)s it=%(it)s iexp=%(iexp)s ngrd=%(ngrd)s irnd=%(irnd)s\n'
344 'machep=%(machep)s eps=%(_str_eps)s (beta**machep == epsilon)\n'
345 'negep =%(negep)s epsneg=%(_str_epsneg)s (beta**epsneg)\n'
346 'minexp=%(minexp)s xmin=%(_str_xmin)s (beta**minexp == tiny)\n'
347 'maxexp=%(maxexp)s xmax=%(_str_xmax)s ((1-epsneg)*beta**maxexp == huge)\n'
348 'smallest_normal=%(smallest_normal)s '
349 'smallest_subnormal=%(smallest_subnormal)s\n'
350 '---------------------------------------------------------------------\n'
351 )
352 return fmt % self.__dict__
353
354
355if __name__ == '__main__':

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected