Visible to Intel only — GUID: GUID-59EC4B87-29C8-4FB4-B57C-D269E6364954
Visible to Intel only — GUID: GUID-59EC4B87-29C8-4FB4-B57C-D269E6364954
Vector Mathematical Functions
Intel® oneAPI Math Kernel Library (oneMKL) Vector Mathematics functions (VM) compute a mathematical function of each of the vector elements. VM includes a set of highly optimized functions (arithmetic, power, trigonometric, exponential, hyperbolic, special, and rounding) that operate on vectors of real and complex numbers.
Application programs that improve performance with VM include nonlinear programming software, computation of integrals, financial calculations, computer graphics, and many others.
VM functions fall into the following groups according to the operations they perform:
VM Mathematical Functions compute values of mathematical functions, such as sine, cosine, exponential, or logarithm, on vectors stored contiguously in memory.
VM Pack/Unpack Functions convert to and from vectors with positive increment indexing, vector indexing, and mask indexing (see Appendix "Vector Arguments in VM" for details on vector indexing methods).
VM Service Functions set/get the accuracy modes and the error codes, and free memory.
The VM mathematical functions take an input vector as an argument, compute values of the respective function element-wise, and return the results in an output vector. All the VM mathematical functions can perform in-place operations, where the input and output arrays are at the same memory locations. For VM mathematical functions with positive increment indexing, in-place operations are supported only when the input and output increments have the same value.
The Intel® oneAPI Math Kernel Library (oneMKL) interfaces are given in mkl_vml.f90; the mkl_vml.fi include file available in the previous versions of Intel® oneAPI Math Kernel Library (oneMKL) is retained for backward compatibility
Examples that demonstrate how to use the VM functions are located in:
${MKL}/examples/vmlf/source
See VM performance and accuracy data in the online VM Performance and Accuracy Data document available at https://software.intel.com/content/www/us/en/develop/articles/intel-math-kernel-library-documentation.html.
Product and Performance Information |
---|
Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex. Notice revision #20201201 |