TYPERULES Type Rules
Section: FreeMat Functions
Usage
FreeMat follows an extended form of C's type rules (the extension is to handle complex data types. The general rules are as follows:- Integer types are promoted to
int32types, except for matrix operations and division operations. - Mixtures of
floatandcomplextypes producecomplexoutputs. - Mixtures of
doubleorint32types anddcomplextypes producedcomplexoutputs. - Arguments to operators are promoted to the largest type present among the operands.
- Type promotion is not allowed to reduce the information
content of the variable. The only exception to this is
64-bit integers, which can lose information when they
are promoted to 64-bit
doublevalues.
