1#ifndef STAN_MATH_PRIM_FUN_SYMMETRIZE_FROM_UPPER_TRI_HPP
2#define STAN_MATH_PRIM_FUN_SYMMETRIZE_FROM_UPPER_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::Upper>();
void check_square(const char *function, const char *name, const T_y &y)
Check if the specified matrix is square.
auto symmetrize_from_upper_tri(T_x &&x)
Return a symmetric matrix using elements from the lower triangular part of the input matrix.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...