Developer Reference for Intel® oneAPI Math Kernel Library for Fortran
v?Modf
vsModf vdModf vmsModf vmdModf Computes a truncated integer value and the remaining fraction part for each vector element.
Syntax
call vsmodf(n, a, y, z)
call vsmodfi(n, a, inca, y, incy, z, incz)
call vmsmodf(n, a, y, z, mode)
call vmsmodfi(n, a, inca, y, incy, z, incz, mode)
call vdmodf(n, a, y, z)
call vdmodfi(n, a, inca, y, incy, z, incz)
call vmdmodf(n, a, y, z, mode)
call vmdmodfi(n, a, inca, y, incy, z, incz, mode)
Include Files
mkl_vml.f90
Input Parameters
Name |
Type |
Description |
|---|---|---|
n |
INTEGER , INTENT(IN) |
Specifies the number of elements to be calculated. |
a |
Fortran 77: DOUBLE PRECISION for vdmodf , vmdmodfFortran 90: REAL , INTENT(IN) for vsmodf , vmsmodfFortran 90: DOUBLE PRECISION , INTENT(IN) for vdmodf , vmdmodf |
Array, specifies the input vector a . |
inca , incy , incz |
INTEGER, INTENT(IN) |
Specifies increments for the elements of a , y , and z . |
mode |
INTEGER(KIND=8) , INTENT(IN) |
Overrides 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 , z |
Fortran 77: DOUBLE PRECISION for vdmodf , vmdmodfFortran 90: REAL , INTENT(OUT) for vsmodf , vmsmodfFortran 90: 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 |