Intel® Math Kernel Library 2019 Developer Reference - Fortran

v?Modf

Computes a truncated integer value and the remaining fraction part for each vector element.

Syntax

call vsmodf( n, a, y, z )

call vmsmodf( n, a, y, z, mode )

call vdmodf( n, a, y, z )

call vmdmodf( n, a, y, z, mode )

Include Files

Input Parameters

Name

Type

Description

n

INTEGER, INTENT(IN)

Specifies the number of elements to be calculated.

a

DOUBLE PRECISION for vdmodf, vmdmodf

REAL, INTENT(IN) for vsmodf, vmsmodf

DOUBLE PRECISION, INTENT(IN) for vdmodf, vmdmodf

Array, 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.

Output Parameters

Name

Type

Description

y, z

DOUBLE PRECISION for vdmodf, vmdmodf

REAL, INTENT(OUT) for vsmodf, vmsmodf

DOUBLE PRECISION, INTENT(OUT) for vdmodf, vmdmodf

Array, specifies the output vector y and z.

Description

The function computes a truncated integer value and the remaining fraction part for each vector element.



Special Values for Real Function v?Modf(x)
Argument Result: y(i) Result: z(i) Exception
+0 +0 +0  
-0 -0 -0  
+ + +0  
- - -0  
SNAN QNAN QNAN INVALID
QNAN QNAN QNAN