Azzera filtri
Azzera filtri

Vectorization on generated code

2 visualizzazioni (ultimi 30 giorni)
Goksan ISIL
Goksan ISIL il 4 Apr 2020
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

Risposte (0)

Categorie

Scopri di più su Introduction to Installation and Licensing in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by