1 #ifndef STAN_MATH_PRIM_MAT_FUN_DIMS_HPP 2 #define STAN_MATH_PRIM_MAT_FUN_DIMS_HPP 11 inline void dims(
const T& x, std::vector<int>& result) {
14 template <
typename T,
int R,
int C>
15 inline void dims(
const Eigen::Matrix<T, R, C>& x, std::vector<int>& result) {
16 result.push_back(x.rows());
17 result.push_back(x.cols());
20 inline void dims(
const std::vector<T>& x, std::vector<int>& result) {
21 result.push_back(x.size());
27 inline std::vector<int>
dims(
const T& x) {
28 std::vector<int> result;
void dims(const T &x, std::vector< int > &result)