Developer Reference

  • 2020.2
  • 07/15/2020
  • Public Content
Contents

v?MinMag

Returns the element with the smaller magnitude between each pair of elements of the two vector arguments.

Syntax

call vsminmag
(
n
,
a
,
b
,
y
)
call vsminmagi(n, a, inca, b, incb, y, incy)
call vmsminmag
(
n
,
a
,
b
,
y
,
mode
)
call vmsminmagi(n, a, inca, b, incb, y, incy, mode)
call vdminmag
(
n
,
a
,
b
,
y
)
call vdminmagi(n, a, inca, b, incb, y, incy)
call vmdminmag
(
n
,
a
,
b
,
y
,
mode
)
call vmdminmagi(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
vsminmag
REAL
for
vmsminmag
DOUBLE PRECISION
for
vdminmag
DOUBLE PRECISION
for
vmdminmag
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
for possible values and their description.
Output Parameters
Name
Type
Description
y
REAL
for
vsminmag
REAL
for
vmsminmag
DOUBLE PRECISION
for
vdminmag
DOUBLE PRECISION
for
vmdminmagjjssd
Pointer to an array containing the output vector
y
.
Description
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 |
    a
    i
    | < |
    b
    i
    |
    v?MaxMag
    returns
    a
    i
    , otherwise
    v?MaxMag
    returns
    a
    i
    .
  • If |
    b
    i
    | < |
    a
    i
    |
    v?MaxMag
    returns
    b
    i
    , otherwise
    v?MaxMag
    returns
    a
    i
    .
  • Otherwise
    v?MaxMag
    behaves like
    v?Fmin
    .
Special values for Real Function
v?MinMag(x, y)
Argument 1
Argument 2
Result
VM Error Status
Exception
a
i
not NAN
NAN
a
i