pyxu.runtime#

class Width(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Bases: Enum

Machine-dependent floating-point types.

SINGLE = dtype('float32')#
DOUBLE = dtype('float64')#
eps()[source]#

Machine precision of a floating-point type.

Returns the difference between 1 and the next smallest representable float larger than 1.

Return type:

Real

property complex: CWidth#

Returns precision-equivalent complex-valued type.

class CWidth(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Bases: Enum

Machine-dependent complex-valued floating-point types.

SINGLE = dtype('complex64')#
DOUBLE = dtype('complex128')#
property real: Width#

Returns precision-equivalent real-valued type.