numpy 1.22.4 Pypi GitHub Homepage
Other Docs
AttributesParametersBackRef

Attributes

ibeta : int

Radix in which numbers are represented.

it : int

Number of base-:None:None:`ibeta` digits in the floating point mantissa M.

machep : int

Exponent of the smallest (most negative) power of :None:None:`ibeta` that, added to 1.0, gives something different from 1.0

eps : float

Floating-point number beta**machep (floating point precision)

negep : int

Exponent of the smallest power of :None:None:`ibeta` that, subtracted from 1.0, gives something different from 1.0.

epsneg : float

Floating-point number beta**negep .

iexp : int

Number of bits in the exponent (including its sign and bias).

minexp : int

Smallest (most negative) power of :None:None:`ibeta` consistent with there being no leading zeros in the mantissa.

xmin : float

Floating-point number beta**minexp (the smallest [in magnitude] positive floating point number with full precision).

maxexp : int

Smallest (positive) power of :None:None:`ibeta` that causes overflow.

xmax : float

(1-epsneg) * beta**maxexp (the largest [in magnitude] usable floating value).

irnd : int

In range(6) , information on what kind of rounding is done in addition, and on how underflow is handled.

ngrd : int

Number of 'guard digits' used when truncating the product of two mantissas to fit the representation.

epsilon : float

Same as :None:None:`eps`.

tiny : float

An alias for :None:None:`smallest_normal`, kept for backwards compatibility.

huge : float

Same as :None:None:`xmax`.

precision : float

- int(-log10(eps))

resolution : float

- 10**(-precision)

smallest_normal : float

The smallest positive floating point number with 1 as leading bit in the mantissa following IEEE-754. Same as xmin .

smallest_subnormal : float

The smallest positive floating point number with 0 as leading bit in the mantissa following IEEE-754.

Parameters

float_conv : function, optional

Function that converts an integer or integer array to a float or float array. Default is :None:None:`float`.

int_conv : function, optional

Function that converts a float or float array to an integer or integer array. Default is :None:None:`int`.

float_to_float : function, optional

Function that converts a float array to float. Default is :None:None:`float`. Note that this does not seem to do anything useful in the current implementation.

float_to_str : function, optional

Function that converts a single float to a string. Default is lambda v:'%24.16e' %v .

title : str, optional

Title that is printed in the string representation of MachAr .

Diagnosing machine parameters.

See Also

finfo

Machine limits for floating point types.

iinfo

Machine limits for integer types.

Examples

See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

numpy.finfo numpy.MachAr

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /numpy/__init__.py#None
type: <class 'type'>
Commit: