set_math_lib¶
set_math_lib setzt die Mathematik-Library für mathematische Operationen.
-
bool = set_math_lib(ssLib)
Returnwert
bool ist TRUE (1), wenn die Funktion erfolgreich war und sonst FALSE (0).
Parameter
-
ssLib
ssLib ist einer der Strings „ref“, „mkl“.
mkl Intel® Math Kernel Library (Intel® MKL), http://software.intel.com/en-us/intel-mkl/ ref Nicht-optimierte Referenz-Implementierung, http://www.netlib.org/lapack/index.html
Beispiel
set_math_lib("ref")
a = rand(1000, 1000);
tic(); a*a; toc()
set_math_lib("mkl")
a = rand(1000, 1000);
tic(); a*a; toc()
History
Version | Beschreibung |
---|---|
5.15.2 | AMD Core Math Library (ACML) entfernt. |
5.14.0 | Neu. |
Siehe auch
id-880570