Stan Math Library
2.20.0
reverse mode automatic differentiation
stan
math
prim
scal
meta
as_column_vector_or_scalar.hpp
Go to the documentation of this file.
1
#ifndef STAN_MATH_PRIM_SCAL_FUN_AS_COLUMN_VECTOR_OR_SCALAR_HPP
2
#define STAN_MATH_PRIM_SCAL_FUN_AS_COLUMN_VECTOR_OR_SCALAR_HPP
3
4
namespace
stan
{
5
namespace
math {
6
15
template
<
typename
T>
16
inline
const
T&
as_column_vector_or_scalar
(
const
T& a) {
17
return
a;
18
}
19
20
}
// namespace math
21
}
// namespace stan
22
23
#endif
stan::math::as_column_vector_or_scalar
const Eigen::Matrix< T, Eigen::Dynamic, 1 > & as_column_vector_or_scalar(const Eigen::Matrix< T, Eigen::Dynamic, 1 > &a)
Converts input argument to a column vector or a scalar.
Definition:
as_column_vector_or_scalar.hpp:19
stan
Definition:
log_sum_exp.hpp:8
[
Stan Home Page
]
© 2011–2018, Stan Development Team.