Vectorization on generated code

2 次查看(过去 30 天)
Goksan ISIL
Goksan ISIL 2020-4-4
Hi,
I understand that when array and matrix operations are used, rather than relying on for loops, Matlab enables vectorization. But I believe this is valid for the code that is running within the Matlab engine itself.
How about the vectorization for the C/C++ code that is generated from Matlab? I understand that normally compilers like Intel icpc enable automatic or forced vectorization, if the for loop thats written is vectorizable.
So in order to utilize vectorization on the Matlab generated code, do we need to manually enable it during the compilation process or is there another Matlab suggested way of enabling vectorization? Or does Matlab already generate "vectorized code" for C/C++? I'm not sure how that would be possible though since C/C++ are not mathematical languages by nature.
Thanks in advance
Göksan

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by