1 #ifndef STAN_MATH_PRIM_MAT_FUN_AS_ARRAY_OR_SCALAR_HPP 2 #define STAN_MATH_PRIM_MAT_FUN_AS_ARRAY_OR_SCALAR_HPP 19 template <
typename T,
int R,
int C>
21 const Eigen::Matrix<T, R, C>& v) {
34 template <
typename T,
int R,
int C>
35 inline Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<T, R, C>>>
49 const std::vector<T>& v) {
50 return Eigen::Map<const Eigen::Array<T, Eigen::Dynamic, 1>>(v.data(),
Eigen::ArrayWrapper< const Eigen::Matrix< T, R, C > > as_array_or_scalar(const Eigen::Matrix< T, R, C > &v)
Converts a matrix type to an array.