1#ifndef STAN_MATH_PRIM_FUN_TRUNC_HPP
2#define STAN_MATH_PRIM_FUN_TRUNC_HPP
24 static inline auto fun(
const T& x) {
require_all_not_t< is_nonscalar_prim_or_rev_kernel_expression< std::decay_t< Types > >... > require_all_not_nonscalar_prim_or_rev_kernel_expression_t
Require none of the types satisfy is_nonscalar_prim_or_rev_kernel_expression.
fvar< T > trunc(const fvar< T > &x)
Return the nearest integral value that is not larger in magnitude than the specified argument.
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 truncation of the specified argument to the nearest value.
Structure to wrap trunc() so it can be vectorized.