1 #ifndef STAN__AGRAD__FWD__MATRIX__ROWS_DOT_SELF_HPP
2 #define STAN__AGRAD__FWD__MATRIX__ROWS_DOT_SELF_HPP
13 template<
typename T,
int R,
int C>
14 inline Eigen::Matrix<fvar<T>,R,1>
16 Eigen::Matrix<fvar<T>,R,1> ret(x.rows(),1);
17 for (
size_type i = 0; i < x.rows(); i++) {
18 Eigen::Matrix<fvar<T>,1,C> crow = x.row(i);
fvar< T > dot_self(const Eigen::Matrix< fvar< T >, R, C > &v)
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic >::Index size_type
Eigen::Matrix< fvar< T >, R, 1 > rows_dot_self(const Eigen::Matrix< fvar< T >, R, C > &x)