hxtorch.perceptron.nn.Real

class hxtorch.perceptron.nn.Real

Bases: numbers.Complex

To Complex, Real adds the operations that work on real numbers.

In short, those are: a conversion to float, trunc(), divmod, %, <, <=, >, and >=.

Real also provides defaults for the derived operations.

__init__()

Initialize self. See help(type(self)) for accurate signature.

Methods

conjugate()

Conjugate is a no-op for Reals.

Attributes

imag

Real numbers have no imaginary component.

real

Real numbers are their real component.

conjugate()

Conjugate is a no-op for Reals.

property imag

Real numbers have no imaginary component.

property real

Real numbers are their real component.