Complex numbers and complex matrices as blocks of real words
Library · Source module
Complex numbers and complex matrices as blocks of real words
The operand of a routine that holds a complex number is the block of its real and imaginary parts; one that holds a square complex matrix is the block NLAlib.matrixWords. Both are bijective at their length, so a problem may take the complex value as its input.
Main definitions
* NLAlib.Ops.Codec.complex: a complex number as two real words. * NLAlib.Ops.Codec.complexMatrix: a square complex matrix as its interleaved words.