Can MATLAB Coder generate code that uses Intel MKL?
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Is it possible for MATLAB Coder to utilize Intel MKL when generating code? I have MATLAB code as follows:
% Finding magnitude of the gradients.
e = sqrt(h.*h + v.*v);
MATLAB Coder generates the following C code:
/* Finding magnitude of the gradients. */
for (k = 0; k < 2350; k++) {
f1 = h[k];
f2 = v[k];
e[k] = (float)sqrt(f1 * f 1+ f2 * f2);
}
Is it possible to have MATLAB Coder generate something like this?
/* Computes a square root of sum of two squared elements. */
vsHypot(2350, h, v, e);
0 Kommentare
Antworten (1)
Darshan Ramakant Bhat
am 7 Jul. 2021
You can refer to "Coder Replacement Libraries" available in MATLAB Coder. Please refer the below docs for more details :
Hope this will be helpful for you.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!