Automatic Differentiation
 
Loading...
Searching...
No Matches
round.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_OPENCL_REV_ROUND_HPP
2#define STAN_MATH_OPENCL_REV_ROUND_HPP
3#ifdef STAN_OPENCL
4
8
9namespace stan {
10namespace math {
11
20template <typename T,
21 require_all_kernel_expressions_and_none_scalar_t<T>* = nullptr>
23 return var_value<matrix_cl<double>>(round(A.val()));
24}
25
26} // namespace math
27} // namespace stan
28
29#endif
30#endif
fvar< T > round(const fvar< T > &x)
Return the closest integer to the specified argument, with halfway cases rounded away from zero.
Definition round.hpp:24
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...