1 #ifndef __STAN__MATH__MATRIX__ROWS_DOT_PRODUCT_HPP__
2 #define __STAN__MATH__MATRIX__ROWS_DOT_PRODUCT_HPP__
20 template<
int R1,
int C1,
int R2,
int C2>
21 inline Eigen::Matrix<double, R1, 1>
23 const Eigen::Matrix<double, R2, C2>& v2) {
25 Eigen::Matrix<double, R1, 1> ret(v1.rows(),1);
26 for (
size_type j = 0; j < v1.rows(); ++j) {
27 ret(j) = v1.row(j).dot(v2.row(j));