1 #ifndef STAN_MATH_FWD_MAT_FUN_MULTIPLY_LOWER_TRI_SELF_TRANSPOSE_HPP
2 #define STAN_MATH_FWD_MAT_FUN_MULTIPLY_LOWER_TRI_SELF_TRANSPOSE_HPP
14 template<
typename T,
int R,
int C>
16 Eigen::Matrix<fvar<T>, R, R>
19 return Eigen::Matrix<
fvar<T>, R, R>(0, 0);
20 Eigen::Matrix<fvar<T>, R, C> L(m.rows(), m.cols());
23 for (
size_type i = 0; i < m.rows(); i++) {
24 for (
size_type j = 0; (j < i + 1) && (j < m.cols()); j++)
Eigen::Matrix< fvar< T >, R1, C1 > multiply(const Eigen::Matrix< fvar< T >, R1, C1 > &m, const fvar< T > &c)
Eigen::Matrix< fvar< T >, R, R > multiply_lower_tri_self_transpose(const Eigen::Matrix< fvar< T >, R, C > &m)
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic >::Index size_type
Type for sizes and indexes in an Eigen matrix with double e.
Eigen::Matrix< T, C, R > transpose(const Eigen::Matrix< T, R, C > &m)