1 #ifndef STAN_MATH_PRIM_FUN_TYPEDEFS_HPP 2 #define STAN_MATH_PRIM_FUN_TYPEDEFS_HPP 3 4 #include <stan/math/prim/meta.hpp> 5 #include <stan/math/prim/fun/Eigen.hpp> 6 7 namespace stan { 8 namespace math { 9 10 /** 11 * Type for sizes and indexes in an Eigen matrix with double elements. 12 */ 13 using size_type 14 = index_type_t<Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic>>; 15 16 /** 17 * Type for matrix of double values. 18 */ 19 using matrix_d = Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic>; 20 21 /** 22 * Type for (column) vector of double values. 23 */ 24 using vector_d = Eigen::Matrix<double, Eigen::Dynamic, 1>; 25 26 /** 27 * Type for (row) vector of double values. 28 */ 29 using row_vector_d = Eigen::Matrix<double, 1, Eigen::Dynamic>; 30 31 } // namespace math 32 } // namespace stan 33 34 #endif 35