Automatic Differentiation
 
Loading...
Searching...
No Matches
to_int.hpp File Reference

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>
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 (const Container &x)
 Returns the elementwise to_int() of the input, which may be a scalar or any Stan container of numeric scalars.