Developer Reference for Intel® oneAPI Math Kernel Library for Fortran
v?Exp2
Computes the base 2 exponential of vector elements.
Syntax
call vsexp2(n, a, y)
call vsexp2i(n, a, inca, y, incy)
call vmsexp2(n, a, y, mode)
call vmsexp2i(n, a, inca, y, incy, mode)
call vdexp2(n, a, y)
call vdexp2i(n, a, inca, y, incy)
call vmdexp2(n, a, y, mode)
call vmdexp2i(n, a, inca, y, incy, mode)
Include Files
mkl_vml.f90
Input Parameters
Name |
Type |
Description |
|---|---|---|
n |
INTEGER |
Specifies the number of elements to be calculated. |
a |
REAL for vsExp2 REAL for vmsExp2 DOUBLE PRECISION for vdExp2 DOUBLE PRECISION for vmdExp2 |
Pointer to the array containing the input vector a . |
inca , incy |
INTEGER, INTENT(IN) |
Specifies increments for the elements of a and y . |
mode |
INTEGER (KIND=8) |
Overrides the global VM mode setting for this function call. See vmlSetMode (Sets a new mode for VM functions according to the mode parameter and stores the previous VM mode to oldmode.) for possible values and their description. |
Output Parameters
Name |
Type |
Description |
|---|---|---|
y |
REAL for vsExp2 REAL for vmsExp2 DOUBLE PRECISION for vdExp2 DOUBLE PRECISION for vmdExp2 |
Pointer to an array containing the output vector y . |
Description
The v?Exp2 function computes the base 2 exponential of vector elements.
Precision Overflow Thresholds for Real Function v?Exp2
Data Type |
Threshold Limitations on Input Parameters |
|---|---|
single precision |
ai < log 2 (FLT_MAX) |
double precision |
ai < log 2 (DBL_MAX) |
See Special Value Notations for the conventions used in this table:
Special values for Real Function v?Exp2(x)
Argument |
Result |
VM Error Status |
Exception |
|---|---|---|---|
+0 |
+1 |
||
-0 |
+1 |
||
x > overflow |
|
VML_STATUS_OVERFLOW |
OVERFLOW |
x < underflow |
+0 |
VML_STATUS_UNDERFLOW |
UNDERFLOW |
|
|
||
|
+0 |
||
QNAN |
QNAN |
||
SNAN |
QNAN |
INVALID |