This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Complex Numbers library

Other Parts Discussed in Thread: TMS320F28335, CONTROLSUITE

Hi everybody,

I'm working in a project where I have to use complex numbers. I've developed my own library but I'd want to know if there is a C "Texas Instruments" library for the TMS320F28335.

Thanks

  • Did you get a chance to look at IQ functions? You have IQ fucntions to calculate magnitude, inverse angles, sin/cos etc  which can potentially be applied in complex math. What type of complex functions are you looking for?

  • Yes, interested in what is missing from the IQMath library.

    If you are trying to do the math on the real and imaginary parts this is done today (radar applications).  

    We are working on something new in this area...you'll see something in January.

     

  • At the IQmath library we have to use IQ numbers, what I need is to manage complex numbers whose real and imaginary parts are floats (32 bits). I've attached  the .c and .h I'm using now. I'm sure there're errors and errors,,, But it's what I have.

    Thanks for your replies,

    Ximo

    complejos.zip
  • Ximo,

    In our new release controlSUITE we already have complex FFT library under FPU.lib which supports 32 bit floating point multiplication and add. If just regular complex multiply and add operation rather than very complicated algorithm implementation (like filtering or fft). you can just use regular C to write your code. The compiler would be able to optimize it while it won't downgrade too much performance which i believe.  

    We are still working on complex filtering lib and it will released soon.

    For C implementation of complex number operation, you can just use whatever C compiler on your regular PC to verify it (GNU toolchain or visual studio). It doesn't necessarily need to debug on CCS. Once it works, then porting to your CCS project.

    -Yu Cai