flopscope.

flopscope.numpy.iinfo

flopscope.numpy.iinfo(int_type)

Machine limits for integer types.

Parameters

int_type:integer type, dtype, or instance

The kind of integer data type to get information about.

See also

Examples

With types:

>>> import flopscope.numpy as fnp
>>> ii16 = flops.iinfo(flops.int16)
>>> ii16.min
-32768
>>> ii16.max
32767
>>> ii32 = flops.iinfo(flops.int32)
>>> ii32.min
-2147483648
>>> ii32.max
2147483647

With instances:

>>> ii32 = flops.iinfo(flops.int32(10))
>>> ii32.min
-2147483648
>>> ii32.max
2147483647