.. _vector-mathematical-functions: Vector Mathematical Functions ============================= |IONE-MKL| 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: - :ref:`vm-mathematical-functions` compute values of mathematical functions, such as sine, cosine, exponential, or logarithm, on vectors stored contiguously in memory. - :ref:`vm-service-functions` set/get the accuracy modes and the error codes,and create error handlers for mathematical functions. 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 |O-MKL| interfaces are given in: .. code-block:: oneapi/mkl/vm.hpp. Examples that demonstrate how to use the VM functions are located in: .. code-block:: ${MKL}/examples/dpcpp/vml/source .. list-table:: :header-rows: 1 * - Product and Performance Information * - Performance varies by use, configuration and other factors. Learn more at `https://www.intel.com/PerformanceIndex `__. Notice revision #20201201 .. toctree:: :maxdepth: 1 :hidden: special-value-notations vm-mathematical-functions vm-service-functions miscellaneous-vm-functions