Stan Math Library
2.20.0
reverse mode automatic differentiation
stan
math
prim
scal
meta
as_scalar.hpp
Go to the documentation of this file.
1
#ifndef STAN_MATH_PRIM_SCAL_FUN_AS_SCALAR_HPP
2
#define STAN_MATH_PRIM_SCAL_FUN_AS_SCALAR_HPP
3
4
namespace
stan
{
5
namespace
math {
6
13
inline
double
as_scalar
(
double
a) {
return
a; }
14
21
inline
int
as_scalar
(
int
a) {
return
a; }
22
23
}
// namespace math
24
}
// namespace stan
25
26
#endif
stan
Definition:
log_sum_exp.hpp:8
stan::math::as_scalar
double as_scalar(const std::vector< T > &a)
Converts input to a scalar.
Definition:
as_scalar.hpp:20
[
Stan Home Page
]
© 2011–2018, Stan Development Team.