1 #ifndef STAN_MATH_REV_CORE_TYPEDEFS_HPP 2 #define STAN_MATH_REV_CORE_TYPEDEFS_HPP 3 4 #include <stan/math/prim/fun/Eigen.hpp> 5 #include <stan/math/rev/meta.hpp> 6 #include <stan/math/rev/core/var.hpp> 7 #include <stan/math/rev/core/Eigen_NumTraits.hpp> 8 9 namespace stan { 10 namespace math { 11 12 using size_type = Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic>::Index; 13 14 /** 15 * The type of a matrix holding <code>var</code> 16 * values. 17 */ 18 using matrix_v = Eigen::Matrix<var, Eigen::Dynamic, Eigen::Dynamic>; 19 20 /** 21 * The type of a (column) vector holding <code>var</code> 22 * values. 23 */ 24 using vector_v = Eigen::Matrix<var, Eigen::Dynamic, 1>; 25 26 /** 27 * The type of a row vector holding <code>var</code> 28 * values. 29 */ 30 using row_vector_v = Eigen::Matrix<var, 1, Eigen::Dynamic>; 31 32 /** 33 * The type of a matrix holding <code>vari*</code> 34 * values. 35 */ 36 using matrix_vi = Eigen::Matrix<vari*, Eigen::Dynamic, Eigen::Dynamic>; 37 38 /** 39 * The type of a (column) vector holding <code>vari*</code> 40 * values. 41 */ 42 using vector_vi = Eigen::Matrix<vari*, Eigen::Dynamic, 1>; 43 44 /** 45 * The type of a row vector holding <code>vari*</code> 46 * values. 47 */ 48 using row_vector_vi = Eigen::Matrix<vari*, 1, Eigen::Dynamic>; 49 50 } // namespace math 51 } // namespace stan 52 #endif 53