Intel® Math Kernel Library 2018 Developer Reference - C
Computes the base 10 logarithm of vector elements.
vsLog10( n, a, y );
vmsLog10( n, a, y, mode );
vdLog10( n, a, y );
vmdLog10( n, a, y, mode );
vcLog10( n, a, y );
vmcLog10( n, a, y, mode );
vzLog10( n, a, y );
vmzLog10( n, a, y, mode );
Name |
Type |
Description |
---|---|---|
n |
const MKL_INT |
Specifies the number of elements to be calculated. |
a |
const float* for vsLog10, vmsLog10 const double* for vdLog10, vmdLog10 const MKL_Complex8* for vcLog10, vmcLog10 const MKL_Complex16* for vzLog10, vmzLog10 |
Pointer to an array that contains the input vector a. |
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 vsLog10, vmsLog10 double* for vdLog10, vmdLog10 MKL_Complex8* for vcLog10, vmcLog10 MKL_Complex16* for vzLog10, vmzLog10 |
Pointer to an array that contains the output vector y. |
The v?Log10 function computes the base 10 logarithm of vector elements.
Argument | Result | VM Error Status | Exception |
---|---|---|---|
+1 | +0 | ||
X < +0 | QNAN | VML_STATUS_ERRDOM | INVALID |
+0 | -∞ | VML_STATUS_SING | ZERODIVIDE |
-0 | -∞ | VML_STATUS_SING | ZERODIVIDE |
-∞ | QNAN | VML_STATUS_ERRDOM | INVALID |
+∞ | +∞ | ||
QNAN | QNAN | ||
SNAN | QNAN | INVALID |
See Special Value Notations for the conventions used in the table below.
RE(z) i·IM(z) |
-∞
|
-X
|
-0
|
+0
|
+X
|
+∞
|
NAN
|
---|---|---|---|---|---|---|---|
+i·∞ | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
+∞+i·QNAN INVALID |
+i·Y | ![]() |
+∞+i·0 | QNAN+i·QNAN INVALID |
||||
+i·0 | ![]() |
![]() |
-∞+i·0 ZERODRIVE | +∞+i·0 | QNAN+i·QNAN INVALID |
||
-i·0 | ![]() |
![]() |
-∞-i·0 ZERODIVIDE | +∞-i·0 | QNAN-i·QNAN INVALID |
||
-i·Y | ![]() |
+∞-i·0 | QNAN+i·QNAN INVALID |
||||
-i·∞ | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
+∞+i·QNAN |
+i·NAN | +∞+i·QNAN |
QNAN+i·QNAN INVALID |
QNAN+i·QNAN INVALID |
QNAN+i·QNAN INVALID |
QNAN+i·QNAN INVALID |
+∞+i·QNAN |
QNAN+i·QNAN INVALID |
Notes:
raises INVALID exception when real or imaginary part of the argument is SNAN