Automatic Differentiation
 
Loading...
Searching...
No Matches
log1m.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_OPENCL_KERNELS_DEVICE_FUNCTIONS_LOG1M_HPP
2#define STAN_MATH_OPENCL_KERNELS_DEVICE_FUNCTIONS_LOG1M_HPP
3#ifdef STAN_OPENCL
4
6#include <string>
7
8namespace stan {
9namespace math {
10namespace opencl_kernels {
11
12// \cond
13static constexpr const char* log1m_device_function
14 = "\n"
15 "#ifndef STAN_MATH_OPENCL_KERNELS_DEVICE_FUNCTIONS_LOG1M\n"
16 "#define STAN_MATH_OPENCL_KERNELS_DEVICE_FUNCTIONS_LOG1M\n" STRINGIFY(
17 // \endcond
28 double log1m(double a) { return log1p(-a); }
29 // \cond
30 ) "\n#endif\n"; // NOLINT
31// \endcond
32
33} // namespace opencl_kernels
34} // namespace math
35} // namespace stan
36
37#endif
38#endif
double log1m(double a)
Calculates the natural logarithm of one minus the specified value.
Definition log1m.hpp:28
fvar< T > log1p(const fvar< T > &x)
Definition log1p.hpp:12
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
#define STRINGIFY(...)
Definition stringify.hpp:9