1#ifndef STAN_MATH_PRIM_FUN_SYMMETRIZE_FROM_LOWER_TRI_HPP
2#define STAN_MATH_PRIM_FUN_SYMMETRIZE_FROM_LOWER_TRI_HPP
18template <
typename T, require_eigen_t<T>* =
nullptr>
19inline Eigen::Matrix<value_type_t<T>, Eigen::Dynamic, Eigen::Dynamic>
22 return m.template selfadjointView<Eigen::Lower>();
void check_square(const char *function, const char *name, const T_y &y)
Check if the specified matrix is square.
auto symmetrize_from_lower_tri(T_x &&x)
Return a symmetric matrix using elements from the upper triangular part of the input matrix.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...