.. highlightlang:: us .. index:: set_math_lib .. _set_math_lib: set_math_lib ============ .. us.tag set_math_lib NOTREADYENGLISH math-misc New5140 Changed5152 :ref:`set_math_lib` sets the math library. .. function:: bool = set_math_lib(ssLib) .. us.return **Return Value** *bool* is TRUE (1), if the function was successful and otherwise FALSE (0). .. us.params **Parameters** .. uparam:: ssLib *ssLib* is one of the strings "ref", "mkl". .. list-table:: :header-rows: 0 * - mkl - IntelĀ® Math Kernel Library (IntelĀ® MKL), http://software.intel.com/en-us/intel-mkl/ * - ref - Non optimized reference implementaion, http://www.netlib.org/lapack/index.html .. us.example **Example** :: set_math_lib("ref") a = rand(1000, 1000); tic(); a*a; toc() set_math_lib("mkl") a = rand(1000, 1000); tic(); a*a; toc() .. us.history **History** .. list-table:: :header-rows: 1 * - Version - Description * - 5.15.2 - AMD Core Math Library (ACML) removed, use MKL. * - 5.14.0 - New .. seealso:: :ref:`overview-mathematic`, :ref:`get_math_lib` :sub:`id-880570`