Visible to Intel only — GUID: GUID-A99A6B28-3872-460B-94E8-42169E6ACE8F
Visible to Intel only — GUID: GUID-A99A6B28-3872-460B-94E8-42169E6ACE8F
v?Mul
Performs element by element multiplication of vector a and vector b.
vsMul( n, a, b, y );
vsMulI(n, a, inca, b, incb, y, incy);
vmsMul( n, a, b, y, mode );
vmsMulI(n, a, inca, b, incb, y, incy, mode);
vdMul( n, a, b, y );
vdMulI(n, a, inca, b, incb, y, incy);vdMulI(n, a, inca, b, incb, y, incy);
vmdMul( n, a, b, y, mode );
vmdMulI(n, a, inca, b, incb, y, incy, mode);
vcMul( n, a, b, y );
vcMulI(n, a, inca, b, incb, y, incy);
vmcMul( n, a, b, y, mode );
vmcMulI(n, a, inca, b, incb, y, incy, mode);
vzMul( n, a, b, y );
vzMulI(n, a, inca, b, incb, y, incy);
vmzMul( n, a, b, y, mode );
vmzMulI(n, a, inca, b, incb, y, incy, mode);
- mkl.h
Name |
Type |
Description |
---|---|---|
n |
const MKL_INT |
Specifies the number of elements to be calculated. |
a, b |
const float* for vsMul, vmsMul const double* for vdMul, vmdMul const MKL_Complex8* for vcMul, vmcMul const MKL_Complex16* for vzMul, vmzMul |
Pointers to arrays that contain 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 global VM mode setting for this function call. See vmlSetMode for possible values and their description. |
Name |
Type |
Description |
---|---|---|
y |
float* for vsMul, vmsMul double* for vdMul, vmdMul MKL_Complex8* for vcMul, vmcMul MKL_Complex16* for vzMul, vmzMul |
Pointer to an array that contains the output vector y. |
The v?Mul function performs element by element multiplication of vector a and vector b.
Argument 1 | Argument 2 | Result | Exception |
---|---|---|---|
+0 | +0 | +0 | |
+0 | -0 | -0 | |
-0 | +0 | -0 | |
-0 | -0 | +0 | |
+0 | +∞ | QNAN | INVALID |
+0 | -∞ | QNAN | INVALID |
-0 | +∞ | QNAN | INVALID |
-0 | -∞ | QNAN | INVALID |
+∞ | +0 | QNAN | INVALID |
+∞ | -0 | QNAN | INVALID |
-∞ | +0 | QNAN | INVALID |
-∞ | -0 | QNAN | INVALID |
+∞ | +∞ | +∞ | |
+∞ | -∞ | -∞ | |
-∞ | +∞ | -∞ | |
-∞ | -∞ | +∞ | |
SNAN | any value | QNAN | INVALID |
any value | SNAN | QNAN | INVALID |
QNAN | non-SNAN | QNAN | |
non-SNAN | QNAN | QNAN |
Specifications for special values of the complex functions are defined according to the following formula
Mul(x1+i*y1,x2+i*y2) = (x1*x2-y1*y2) + i*(x1*y2+y1*x2).
Overflow in a complex function occurs (supported in the HA/LA accuracy modes only) when all RE(x), RE(y), IM(x), IM(y) arguments are finite numbers, but the real or imaginary part of the computed result is so large that it does not fit the target precision. In this case, the function returns ∞ in that part of the result, raises the OVERFLOW exception, and sets the VM Error Status to VML_STATUS_OVERFLOW (overriding any possible VML_STATUS_ACCURACYWARNING status).