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 12 template <
typename T,
int R,
int C>
14 const Eigen::Matrix<
fvar<T>, R, C>& m) {
16 return Eigen::Matrix<
fvar<T>, R, R>(0, 0);
17 Eigen::Matrix<fvar<T>, R, C> L(m.rows(), m.cols());
20 for (
size_type i = 0; i < m.rows(); i++) {
21 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.
matrix_cl transpose(const matrix_cl &src)
Takes the transpose of the matrix on the OpenCL device.
This template class represents scalars used in forward-mode automatic differentiation, which consist of values and directional derivatives of the specified template type.