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
8#include <cmath>
9
10namespace stan {
11namespace math {
12
47inline var ceil(const var& a) { return var(std::ceil(a.val())); }
48
49template <typename T, require_matrix_t<T>* = nullptr>
50inline auto ceil(const var_value<T>& a) {
51 return var_value<T>(a.val().array().ceil());
52}
53
54} // namespace math
55} // namespace stan
56#endif
var_value< double > var
Definition var.hpp:1187
fvar< T > ceil(const fvar< T > &x)
Definition ceil.hpp:12
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...