Intel® Math Kernel Library 2019 Developer Reference - C
Returns the element with the smaller magnitude between each pair of elements of the two vector arguments.
vsMinMag (n, a, b, y);
vmsMinMag (n, a, b, y, mode);
vdMinMag (n, a, b, y);
vmdMinMag (n, a, b, y, mode);
Name |
Type |
Description |
---|---|---|
n |
const MKL_INT |
Specifies the number of elements to be calculated. |
a, b |
const float* for vsMinMag const float* for vmsMinMag const double* for vdMinMag const double* for vmdMinMag |
Pointers to the arrays containing the input vectors a and b. |
mode |
const MKL_INT64 |
Overrides the global VM mode setting for this function call. See vmlSetMode for possible values and their description. |
Name |
Type |
Description |
---|---|---|
y |
float* for vsMinMag float* for vmsMinMag double* for vdMinMag double* for vmdMinMag |
Pointer to an array containing the output vector y. |
The v?MinMag function returns a vector with element values equal to the element with the smaller magnitude from each pair of corresponding elements of the two vectors a and b:
If |ai| < |bi| v?MaxMag returns ai, otherwise v?MaxMag returns ai.
If |bi| < |ai| v?MaxMag returns bi, otherwise v?MaxMag returns ai.
Otherwise v?MaxMag behaves like v?Fmin.
Argument 1 | Argument 2 | Result | VM Error Status | Exception |
---|---|---|---|---|
ai not NAN | NAN | ai | ||
NAN | bi not NAN | bi | ||
NAN | NAN | NAN |