Standard arithmetic operators with interleaved complex API?

Hello,
I am interested if the interleaved complex API works similiar as the complex number math suported by c99 using the complex.h header? Is it possible to write something like
/* perform addition on element i */
zc[i] = xc[i] + yc[i];
instead of
/* perform addition on element i */
zc[i].real = xc[i].real + yc[i].real;
zc[i].imag = xc[i].imag + yc[i].imag;
It would be great if that would be possible for standard arithmetic operators +,-,*,/ as it makes the code much easier.b That would be a valid reason to upgrade the Matlab version on our server.
Thanks a lot and best wishes
Christopher

Catégories

En savoir plus sur Write C Functions Callable from MATLAB (MEX Files) dans Centre d'aide et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by