Standard arithmetic operators with interleaved complex API?
Show older comments
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
Answers (1)
James Tursa
on 22 Mar 2018
0 votes
It looks like the latter from this page of the doc:
Categories
Find more on Write C Functions Callable from MATLAB (MEX Files) in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!