1 #ifndef STAN__MATH__MATRIX__MULTIPLY_LOWER_TRI_SELF_HPP
2 #define STAN__MATH__MATRIX__MULTIPLY_LOWER_TRI_SELF_HPP
23 result(0,0) = L(0,0) * L(0,0);
28 matrix_d L_tri = L.transpose().triangularView<Eigen::Upper>();
29 return L.triangularView<Eigen::Lower>() * L_tri;
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > matrix_d
Type for matrix of double values.
matrix_d multiply_lower_tri_self_transpose(const matrix_d &L)
Returns the result of multiplying the lower triangular portion of the input matrix by its own transpo...