numpy 1.22.4 Pypi GitHub Homepage
Other Docs
AttributesParametersBackRef
iinfo(type)

Attributes

bits : int

The number of bits occupied by the type.

min : int

The smallest integer expressible by the type.

max : int

The largest integer expressible by the type.

Parameters

int_type : integer type, dtype, or instance

The kind of integer data type to get information about.

Machine limits for integer types.

See Also

finfo

The equivalent for floating point data types.

Examples

With types:

>>> ii16 = np.iinfo(np.int16)
... ii16.min -32768
>>> ii16.max
32767
>>> ii32 = np.iinfo(np.int32)
... ii32.min -2147483648
>>> ii32.max
2147483647

With instances:

>>> ii32 = np.iinfo(np.int32(10))
... ii32.min -2147483648
>>> ii32.max
2147483647
See :

Back References

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

dask.array.random.RandomState.tomaxint 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: