Stan Math Library
4.9.0
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
4
#include <
stan/math/rev/meta.hpp
>
5
#include <
stan/math/rev/core.hpp
>
6
#include <
stan/math/prim/fun/constants.hpp
>
7
#include <
stan/math/prim/fun/is_nan.hpp
>
8
#include <
stan/math/prim/fun/ceil.hpp
>
9
#include <cmath>
10
11
namespace
stan
{
12
namespace
math {
13
48
inline
var
ceil
(
const
var
& a) {
return
var
(std::ceil(a.val())); }
49
50
template
<
typename
T, require_matrix_t<T>* =
nullptr
>
51
inline
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
stan::math::var_value< double >
constants.hpp
stan::math::var
var_value< double > var
Definition
var.hpp:1187
stan::math::ceil
fvar< T > ceil(const fvar< T > &x)
Definition
ceil.hpp:13
stan
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition
unit_vector_constrain.hpp:15
ceil.hpp
is_nan.hpp
core.hpp
meta.hpp
stan
math
rev
fun
ceil.hpp
[
Stan Home Page
]
© 2011–2019, Stan Development Team.