Stan Math Library  2.20.0
reverse mode automatic differentiation
Namespaces | Functions
primitive_value.hpp File Reference
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/scal/fun/value_of.hpp>
#include <type_traits>

Go to the source code of this file.

Namespaces

 stan
 
 stan::math
 Matrices and templated mathematical functions.
 

Functions

template<typename T >
std::enable_if< std::is_arithmetic< T >::value, T >::type stan::math::primitive_value (T x)
 Return the value of the specified arithmetic argument unmodified with its own declared type. More...
 
template<typename T >
std::enable_if<!std::is_arithmetic< T >::value, double >::type stan::math::primitive_value (const T &x)
 Return the primitive value of the specified argument. More...
 

     [ Stan Home Page ] © 2011–2018, Stan Development Team.