1 #ifndef STAN_MATH_FWD_MAT_FUN_ROWS_DOT_SELF_HPP 2 #define STAN_MATH_FWD_MAT_FUN_ROWS_DOT_SELF_HPP 11 template <
typename T,
int R,
int C>
13 const Eigen::Matrix<
fvar<T>, R, C>& x) {
14 Eigen::Matrix<fvar<T>, R, 1> ret(x.rows(), 1);
15 for (
size_type i = 0; i < x.rows(); i++) {
16 Eigen::Matrix<fvar<T>, 1, C> crow = x.row(i);
Eigen::Matrix< fvar< T >, R, 1 > rows_dot_self(const Eigen::Matrix< fvar< T >, R, C > &x)
fvar< T > dot_self(const Eigen::Matrix< fvar< T >, R, C > &v)
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic >::Index size_type
Type for sizes and indexes in an Eigen matrix with double e.
This template class represents scalars used in forward-mode automatic differentiation, which consist of values and directional derivatives of the specified template type.