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
回答(1 个)
James Tursa
2018-3-22
0 个投票
It looks like the latter from this page of the doc:
类别
在 帮助中心 和 File Exchange 中查找有关 Write C Functions Callable from MATLAB (MEX Files) 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!