Stan Math Library
5.0.0
Automatic Differentiation
Loading...
Searching...
No Matches
trunc.hpp
Go to the documentation of this file.
1
#ifndef STAN_MATH_REV_FUN_TRUNC_HPP
2
#define STAN_MATH_REV_FUN_TRUNC_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/trunc.hpp
>
9
10
namespace
stan
{
11
namespace
math {
12
43
inline
var
trunc
(
const
var
& a) {
return
var
(
trunc
(a.val())); }
44
45
}
// namespace math
46
}
// namespace stan
47
#endif
stan::math::var_value< double >
constants.hpp
stan::math::var
var_value< double > var
Definition
var.hpp:1187
stan::math::trunc
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
stan
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition
unit_vector_constrain.hpp:15
is_nan.hpp
trunc.hpp
core.hpp
meta.hpp
stan
math
rev
fun
trunc.hpp
[
Stan Home Page
]
© 2011–2019, Stan Development Team.