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

Method __init__

numpy/core/_machar.py:104–120  ·  view source on GitHub ↗

float_conv - convert integer to float (array) int_conv - convert float (array) to integer float_to_float - convert float array to float float_to_str - convert array float to str title - description of used floating point numbers

(self, float_conv=float,int_conv=int,
                 float_to_float=float,
                 float_to_str=lambda v:'%24.16e' % v,
                 title='Python floating point number')

Source from the content-addressed store, hash-verified

102 """
103
104 def __init__(self, float_conv=float,int_conv=int,
105 float_to_float=float,
106 float_to_str=lambda v:'%24.16e' % v,
107 title='Python floating point number'):
108 """
109
110 float_conv - convert integer to float (array)
111 int_conv - convert float (array) to integer
112 float_to_float - convert float array to float
113 float_to_str - convert array float to str
114 title - description of used floating point numbers
115
116 """
117 # We ignore all errors here because we are purposely triggering
118 # underflow to detect the properties of the runninng arch.
119 with errstate(under='ignore'):
120 self._do_init(float_conv, int_conv, float_to_float, float_to_str, title)
121
122 def _do_init(self, float_conv, int_conv, float_to_float, float_to_str, title):
123 max_iterN = 10000

Callers

nothing calls this directly

Calls 2

_do_initMethod · 0.95
errstateClass · 0.85

Tested by

no test coverage detected