1 #ifndef __STAN__MATH__MATRIX__DIMS_HPP__
2 #define __STAN__MATH__MATRIX__DIMS_HPP__
13 dims(
const T& x, std::vector<int>& result) {
16 template <
typename T,
int R,
int C>
18 dims(
const Eigen::Matrix<T,R,C>& x,
19 std::vector<int>& result) {
20 result.push_back(x.rows());
21 result.push_back(x.cols());
25 dims(
const std::vector<T>& x,
26 std::vector<int>& result) {
27 result.push_back(x.size());
33 inline std::vector<int>
35 std::vector<int> result;