1#ifndef STAN_MATH_PRIM_FUN_LOG2_HPP
2#define STAN_MATH_PRIM_FUN_LOG2_HPP
31 static inline auto fun(
const T& x) {
47template <
typename T, require_not_var_matrix_t<T>* =
nullptr,
48 require_not_nonscalar_prim_or_rev_kernel_expression_t<T>* =
nullptr>
49inline auto log2(
const T& x) {
constexpr double log2()
Return natural logarithm of two.
static constexpr double LOG_TWO
The natural logarithm of 2, .
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Base template class for vectorization of unary scalar functions defined by a template class F to a sc...
static auto fun(const T &x)
Return the base two logarithm of the specified argument.
Structure to wrap log2() so it can be vectorized.