Intel® Math Kernel Library 2019 Developer Reference - Fortran

v?Expm1

Computes an exponential of vector elements decreased by 1.

Syntax

call vsexpm1( n, a, y )

call vmsexpm1( n, a, y, mode )

call vdexpm1( n, a, y )

call vdexpm1( n, a, y, mode )

Include Files

Input Parameters

Name

Type

Description

n

INTEGER, INTENT(IN)

Specifies the number of elements to be calculated.

a

DOUBLE PRECISION for vdexpm1, vmdexpm1

REAL, INTENT(IN) for vsexpm1, vmsexpm1

DOUBLE PRECISION, INTENT(IN) for vdexpm1, vmdexpm1

Array that specifies the input vector a.

mode

INTEGER(KIND=8), INTENT(IN)

Overrides global VM mode setting for this function call. See vmlSetMode for possible values and their description.

Precision Overflow Thresholds for Expm1 Function
Data Type Threshold Limitations on Input Parameters
single precision a[i] < Ln( FLT_MAX )
double precision a[i] < Ln( DBL_MAX )

Output Parameters

Name

Type

Description

y

DOUBLE PRECISION for vdexpm1, vmdexpm1

REAL, INTENT(OUT) for vsexpm1, vmsexpm1

DOUBLE PRECISION, INTENT(OUT) for vdexpm1, vmdexpm1

Array that specifies the output vector y.

Description

The v?Expm1 function computes an exponential of vector elements decreased by 1.

Special Values for Real Function v?Expm1(x)
Argument Result VM Error Status Exception
+0 +0    
-0 +0    
X > overflow + VML_STATUS_OVERFLOW OVERFLOW
+ +    
- -1    
QNAN QNAN    
SNAN QNAN   INVALID