1#ifndef STAN_MATH_PRIM_FUN_LOG10_HPP
2#define STAN_MATH_PRIM_FUN_LOG10_HPP
24 static inline auto fun(
const T& x) {
41inline auto log10(
const Container& x) {
53template <
typename Container,
55inline auto log10(
const Container& x) {
57 x, [](
const auto& v) {
return v.array().
log10(); });
70 static constexpr double inv_log_10 = 1.0f /
LOG_TEN;
71 return log(z) * inv_log_10;
require_not_t< container_type_check_base< is_container, scalar_type_t, TypeCheck, Check... > > require_not_container_st
Require type does not satisfy is_container.
require_t< container_type_check_base< is_container, scalar_type_t, TypeCheck, Check... > > require_container_st
Require type satisfies is_container.
require_not_t< is_nonscalar_prim_or_rev_kernel_expression< std::decay_t< T > > > require_not_nonscalar_prim_or_rev_kernel_expression_t
Require type does not satisfy is_nonscalar_prim_or_rev_kernel_expression.
require_not_t< is_var_matrix< std::decay_t< T > > > require_not_var_matrix_t
Require type does not satisfy is_var_matrix.
std::complex< V > complex_log10(const std::complex< V > &z)
Return the base 10 logarithm of the complex argument.
static constexpr double LOG_TEN
The natural logarithm of 10, .
fvar< T > log(const fvar< T > &x)
static constexpr double log10()
Returns the natural logarithm of ten.
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)
Structure to wrap log10() so it can be vectorized.