1 #ifndef STAN_MATH_REV_MAT_FUN_COLUMNS_DOT_SELF_HPP
2 #define STAN_MATH_REV_MAT_FUN_COLUMNS_DOT_SELF_HPP
20 template<
int R,
int C>
21 inline Eigen::Matrix<var, 1, C>
23 Eigen::Matrix<var, 1, C> ret(1, x.cols());
24 for (
size_type i = 0; i < x.cols(); i++) {
25 ret(i) =
var(
new dot_self_vari(x.col(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)