Can MATLAB Coder generate code that uses Intel MKL?

조회 수: 10 (최근 30일)
Peter Schreiber
Peter Schreiber 2021년 7월 7일
답변: Darshan Ramakant Bhat 2021년 7월 7일
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);

답변 (1개)

Darshan Ramakant Bhat
Darshan Ramakant Bhat 2021년 7월 7일

카테고리

Help CenterFile Exchange에서 MATLAB Coder에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by