Developer Reference for Intel® oneAPI Math Kernel Library for Fortran
v?Fmax
Returns the larger of each pair of elements of the two vector arguments.
Syntax
call vsfmax(n, a, b, y)
call vsfmaxi(n, a, inca, b, incb, y, incy)
call vmsfmax(n, a, b, y, mode)
call vmsfmaxi(n, a, inca, b, incb, y, incy, mode)
call vdfmax(n, a, b, y)
call vdfmaxi(n, a, inca, b, incb, y, incy)
call vmdfmax(n, a, b, y, mode)
call vmdfmaxi(n, a, inca, b, incb, y, incy, mode)
Include Files
mkl_vml.f90
Input Parameters
Name |
Type |
Description |
|---|---|---|
n |
INTEGER |
Specifies the number of elements to be calculated. |
a , b |
REAL for vsfmax REAL for vmsfmax DOUBLE PRECISION for vdfmax DOUBLE PRECISION for vmdfmax |
Pointers to the arrays containing the input vectors a and b . |
inca , incb , incy |
INTEGER, INTENT(IN) |
Specifies increments for the elements of a , b , 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 vsfmax REAL for vmsfmax DOUBLE PRECISION for vdfmax DOUBLE PRECISION for vmdfmaxjjssd |
Pointer to an array containing the output vector y . |
Description
The v?Fmax function returns a vector with element values equal to the larger value from each pair of corresponding elements of the two vectors a and b : if ai < biv?Fmax returns bi , otherwise v?Fmax returns ai .
Special values for Real Function v?Fmax(x, y)
Argument 1 |
Argument 2 |
Result |
VM Error Status |
Exception |
|---|---|---|---|---|
ai not NAN |
NAN |
ai |
||
NAN |
bi not NAN |
bi |
||
NAN |
NAN |
NAN |