Procedure call syntax:
#include <simdmath.h> |
vector double log1pd2(vector double x); |
Link with -lsimdmath |
Inline call syntax:
#include <simdmath.h> |
#include <log1pd2.h> |
vector double _log1pd2(vector double x); |
Parameters | |
x | input vector |
The log1pd2 function returns a vector of the natural logarithms of (1+x) for the corresponding element of x.
This function returns mathematically accurate values even when the corresponding element of x is near 0 because they use a different algorithm from the log function in the open interval (-0.5, 0.5). Outside this range the function defaults to the standard log routine.
SPU only
SIMD Math library specification for the Cell Broadband Engineā¢ Architecture.
Basis
ISO9899 (C99) log1p functions.