Stan
1.3
probability, sampling & optimization
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerator
Friends
Macros
Pages
src
stan
math
functions
value_of.hpp
Go to the documentation of this file.
1
#ifndef __STAN__MATH__FUNCTIONS__VALUE_OF_HPP__
2
#define __STAN__MATH__FUNCTIONS__VALUE_OF_HPP__
3
4
namespace
stan {
5
namespace
math {
6
19
template
<
typename
T>
20
inline
double
value_of
(
const
T x) {
21
return
static_cast<
double
>
(x);
22
}
23
35
template
<>
36
inline
double
value_of<double>
(
const
double
x) {
37
return
x;
38
}
39
40
}
41
}
42
43
#endif
[
Stan Home Page
]
© 2011–2013, Stan Development Team.