Developer Reference for Intel® oneAPI Math Kernel Library for C

ID 766684
Date 10/31/2024
Public
Document Table of Contents

v?Erfcx

Computes the scaled complementary error function value of vector elements.

Syntax

vhErfcx( n, a, y );
vhErfcxI(n, a, inca, y, incy);
vmhErfcx( n, a, y, mode );
vmhErfcxI(n, a, inca, y, incy, mode);
vsErfcx( n, a, y );
vsErfcxI(n, a, inca, y, incy);
vmsErfcx( n, a, y, mode );
vmsErfcxI(n, a, inca, y, incy, mode);
vdErfcx( n, a, y );
vdErfcxI(n, a, inca, y, incy);
vmdErfcx( n, a, y, mode );
vmdErfcxI(n, a, inca, 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

const _Float16* for vhErfcx, vmhErfcx

const float* for vsErfcx, vmsErfcx

const double* for vdErfcx, vmdErfcx

Pointer to an array that contains the input vector a.

inca, incy

const MKL_INT

Specifies increments for the elements of a and y.

mode

const MKL_INT64

Overrides global VM mode setting for this function call. See vmlSetMode for possible values and their description.

Output Parameters

Name

Type

Description

y

_Float16* for vhErfcx, vmhErfcx

float* for vsErfcx, vmsErfcx

double* for vdErfcx, vmdErfcx

Pointer to an array that contains the output vector y.

Description

The Erfcx function computes the scaled complementary error function values for elements of the input vector a and writes them to the output vector y.

The scaled complementary error function is defined as follows:

erfcx(x) = exp(x2)▪erfc(x)

Special Values for Real Function v?Erfcx(x)
Argument Result VM Error Status Exception
+ +0    
- +    
QNAN QNAN    
SNAN QNAN   INVALID

See Also