1 #ifndef STAN_MATH_REV_MAT_FUN_COLUMNS_DOT_SELF_HPP 2 #define STAN_MATH_REV_MAT_FUN_COLUMNS_DOT_SELF_HPP 18 template <
int R,
int C>
20 const Eigen::Matrix<var, R, C>& x) {
21 Eigen::Matrix<var, 1, C> ret(1, x.cols());
22 for (
size_type i = 0; i < x.cols(); i++) {
Independent (input) and dependent (output) variables for gradients.
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)