Automatic Differentiation
 
Loading...
Searching...
No Matches
ceil.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_REV_FUN_CEIL_HPP
2#define STAN_MATH_REV_FUN_CEIL_HPP
3
9#include <cmath>
10
11namespace stan {
12namespace math {
13
48inline var ceil(const var& a) { return var(std::ceil(a.val())); }
49
50template <typename T, require_matrix_t<T>* = nullptr>
51inline auto ceil(const var_value<T>& a) {
52 return var_value<T>(a.val().array().ceil());
53}
54
55} // namespace math
56} // namespace stan
57#endif
var_value< double > var
Definition var.hpp:1187
fvar< T > ceil(const fvar< T > &x)
Definition ceil.hpp:13
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...