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
9
10namespace stan {
11namespace math {
12
43inline var trunc(const var& a) { return var(trunc(a.val())); }
44
45} // namespace math
46} // namespace stan
47#endif
var_value< double > var
Definition var.hpp:1187
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
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...