Developer Reference for Intel® oneAPI Math Kernel Library for C

ID 766684
Date 3/22/2024
Public
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

vsFdim (n, a, b, y);

vsFdimI(n, a, inca, b, incb, y, incy);

vmsFdim (n, a, b, y, mode);

vmsFdimI(n, a, inca, b, incb, y, incy, mode);

vdFdim (n, a, b, y);

vdFdimI(n, a, inca, b, incb, y, incy);

vmdFdim (n, a, b, y, mode);

vmdFdimI(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 float* for vsFdim

const float* for vmsFdim

const double* for vdFdim

const double* for vmdFdim

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

float* for vsFdim

float* for vmsFdim

double* for vdFdim

double* for vmdFdim

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