Borrar filtros
Borrar filtros

Vectorization on generated code

2 visualizaciones (últimos 30 días)
Goksan ISIL
Goksan ISIL el 4 de Abr. de 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

Respuestas (0)

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by