Visible to Intel only — GUID: GUID-877110D6-A22B-49E3-8813-54B269ED2D52
Visible to Intel only — GUID: GUID-877110D6-A22B-49E3-8813-54B269ED2D52
v?Fmax
Returns the larger of each pair of elements of the two vector arguments.
Syntax
vhFmax (n, a, b, y);
vhFmaxI(n, a, inca, b, incb, y, incy);
vmhFmax (n, a, b, y, mode);
vmhFmaxI(n, a, inca, b, incb, y, incy, mode);
vsFmax (n, a, b, y);
vsFmaxI(n, a, inca, b, incb, y, incy);
vmsFmax (n, a, b, y, mode);
vmsFmaxI(n, a, inca, b, incb, y, incy, mode);
vdFmax (n, a, b, y);
vdFmaxI(n, a, inca, b, incb, y, incy);
vmdFmax (n, a, b, y, mode);
vmdFmaxI(n, a, inca, b, incb, y, incy, mode);
Include Files
- mkl.h
Input Parameters
Name |
Type |
Description |
---|---|---|
n |
const MKL_INT |
Specifies the number of elements to be calculated. |
a, b |
const _Float16* for vhFmax const float* for vsFmax const _Float16* for vmhFmax const float* for vmsFmax const double* for vdFmax const double* for vmdFmax |
Pointers to the arrays containing the input vectors a and b. |
inca, incb, incy |
const MKL_INT |
Specifies increments for the elements of a, b, and y. |
mode |
const MKL_INT64 |
Overrides the global VM mode setting for this function call. See vmlSetMode for possible values and their description. |
Output Parameters
Name |
Type |
Description |
---|---|---|
y |
_Float16* for vhFmax float* for vsFmax _Float16* for vmhFmax float* for vmsFmax double* for vdFmax double* for vmdFmax |
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.
Argument 1 | Argument 2 | Result | VM Error Status | Exception |
---|---|---|---|---|
ai not NAN | NAN | ai | ||
NAN | bi not NAN | bi | ||
NAN | NAN | NAN |