module documentation

Machine limits for Float32 and Float64 and (long double) if available...

Class finfo finfo(dtype)
Class iinfo iinfo(type)
Class MachArLike Object to simulate MachAr instance
Function _discovered_machar Create MachAr instance with found information on float types
Function _fr0 fix rank-0 --> rank-1
Function _fr1 fix rank > 0 --> rank-0
Function _get_machar Get MachAr instance or MachAr-like instance
Function _register_known_types Undocumented
Function _register_type Undocumented
Constant _KNOWN_TYPES Undocumented
Constant _MACHAR_PARAMS Undocumented
Variable _convert_to_float Undocumented
Variable _float_ma Undocumented
Variable _title_fmt Undocumented
def _discovered_machar(ftype): (source)

Create MachAr instance with found information on float types

def _fr0(a): (source)

fix rank-0 --> rank-1

def _fr1(a): (source)

fix rank > 0 --> rank-0

def _get_machar(ftype): (source)

Get MachAr instance or MachAr-like instance

Get parameters for floating point type, by first trying signatures of various known floating point types, then, if none match, attempting to identify parameters by analysis.

Parameters
ftype:classNumpy floating point type class (e.g. np.float64)
Returns
instance of MachAr or MachArLikema_like - Object giving floating point parameters for ftype.
Warns
UserWarningIf the binary signature of the float type is not in the dictionary of known float types.
def _register_known_types(): (source)

Undocumented

def _register_type(machar, bytepat): (source)

Undocumented

_KNOWN_TYPES: dict = (source)

Undocumented

Value
{}
_MACHAR_PARAMS = (source)

Undocumented

Value
{ntypes.double: dict(itype=ntypes.int64,
                     fmt='%24.16e',
                     title=_title_fmt.format('double')),
 ntypes.single: dict(itype=ntypes.int32,
                     fmt='%15.7e',
                     title=_title_fmt.format('single')),
 ntypes.longdouble: dict(itype=ntypes.longlong, fmt='%s', title=_title_fmt.format
...
_convert_to_float = (source)

Undocumented

_float_ma: dict = (source)

Undocumented

_title_fmt: str = (source)

Undocumented