Scalar Numeric Types

There are four numeric scalar types: complex, fixed-point, double precision floating-point, and integer.

All of these four types can be read from and written to ports as described in Reading Inputs and Writing Outputs. The floating-point and integer data types are based on the standard C++ double and int types, and need no further explanation. To support the other two types, the MLDesigner kernel contains a Complex and a Fix class, which are described in this section.

Complex Data Type

The Complex data type in MLDesigner contains real and imaginary components, each of them is specified as a double precision floating-point number.

Fixed-point Data Type

The fixed-point data type is implemented in MLDesigner by the Fix class.