Developer Reference for Intel® oneAPI Math Kernel Library for Fortran

ID 766686
Date 3/22/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

v?Fdim

Returns vector containing the differences of the corresponding elements of the vector arguments if the first is larger and +0 otherwise.

Syntax

call vsfdim (n, a, b, y)

call vsfdimi(n, a, inca, b, incb, y, incy)

call vmsfdim (n, a, b, y, mode)

call vmsfdimi(n, a, inca, b, incb, y, incy, mode)

call vdfdim (n, a, b, y)

call vdfdimi(n, a, inca, b, incb, y, incy)

call vmdfdim (n, a, b, y, mode)

call vmdfdimi(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 vsfdim

REAL for vmsfdim

DOUBLE PRECISION for vdfdim

DOUBLE PRECISION for vmdfdim

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 vsfdim

REAL for vmsfdim

DOUBLE PRECISION for vdfdim

DOUBLE PRECISION for vmdfdimjjssd

Pointer to an array containing the output vector y.

Description

The v?Fdim function returns a vector containing the differences of the corresponding elements of the first and second vector arguments if the first element is larger, and +0 otherwise.

Special values for Real Function v?Fdim(x, y)
Argument 1 Argument 2 Result VM Error Status Exception
any QNAN QNAN    
any SNAN QNAN   INVALID
QNAN any QNAN    
SNAN any QNAN   INVALID