Automatic Differentiation
 
Loading...
Searching...
No Matches
trunc.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_OPENCL_REV_TRUNC_HPP
2#define STAN_MATH_OPENCL_REV_TRUNC_HPP
3#ifdef STAN_OPENCL
4
8
9namespace stan {
10namespace math {
11
19template <typename T,
20 require_all_kernel_expressions_and_none_scalar_t<T>* = nullptr>
22 return var_value<matrix_cl<double>>(trunc(A.val()));
23}
24
25} // namespace math
26} // namespace stan
27
28#endif
29#endif
fvar< T > trunc(const fvar< T > &x)
Return the nearest integral value that is not larger in magnitude than the specified argument.
Definition trunc.hpp:20
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...