1 #ifndef STAN_MATH_FWD_MAT_FUN_COLUMNS_DOT_SELF_HPP 2 #define STAN_MATH_FWD_MAT_FUN_COLUMNS_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>, 1, C> ret(1, x.cols());
15 for (
size_type i = 0; i < x.cols(); i++) {
16 Eigen::Matrix<fvar<T>, R, 1> ccol = x.col(i);
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.
Eigen::Matrix< fvar< T >, 1, C > columns_dot_self(const Eigen::Matrix< fvar< T >, R, C > &x)
This template class represents scalars used in forward-mode automatic differentiation, which consist of values and directional derivatives of the specified template type.