MSP DSP Library
|
Complex numbers are represented as pairs of consecutive data where the even indices are the real inputs and the odd indices are the imaginary inputs. The length passed to complex DSPLib functions is the number of complex data pairs, meaning the functions assume twice the length has been allocated for complex data storage. An example of how complex data arrays can be allocated and referenced using some of the available macros is below.
For a more detailed look at working with complex numbers please see the following code examples that use complex data types.