Developer Reference for Intel® oneAPI Math Kernel Library for C
v?Fdim
Returns vector containing the differences of the corresponding elements of the vector arguments if the first is larger and +0 otherwise.
Syntax
vhFdim (n, a, b, y);
vhFdimI(n, a, inca, b, incb, y, incy);
vmhFdim (n, a, b, y, mode);
vmhFdimI(n, a, inca, b, incb, y, incy, mode);
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 _Float16* for vhFdim const float* for vsFdim const _Float16* for vmhFdim 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  |  
      _Float16* for vhFdim float* for vsFdim _Float16* for vmhFdim 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.
| Argument 1 | Argument 2 | Result | VM Error Status | Exception | 
|---|---|---|---|---|
| any | QNAN | QNAN | ||
| any | SNAN | QNAN | INVALID | |
| QNAN | any | QNAN | ||
| SNAN | any | QNAN | INVALID |