![]() |
Stan Math Library
5.1.0
Automatic Differentiation
|
#include <stan/math/prim/err/check_bounded.hpp>#include <stan/math/prim/functor/apply_scalar_unary.hpp>Go to the source code of this file.
Classes | |
| struct | stan::math::to_int_fun |
| Return elementwise integer value of the specified real-valued container. More... | |
Namespaces | |
| namespace | stan |
| The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation from C or the boost::math::lgamma implementation. | |
| namespace | stan::math |
| Matrices and templated mathematical functions. | |
Functions | |
| template<typename T , require_integral_t< T > * = nullptr> | |
| T | stan::math::to_int (T x) |
| Returns the input scalar as an integer type. | |
| template<typename T , require_floating_point_t< T > * = nullptr> | |
| int | stan::math::to_int (T x) |
| Returns the input scalar as an integer type. | |
| template<typename Container , require_std_vector_st< std::is_arithmetic, Container > * = nullptr> | |
| auto | stan::math::to_int (Container &&x) |
Returns the elementwise to_int() of the input, which may be a scalar or any Stan container of numeric scalars. | |