1#ifndef STAN_MATH_PRIM_FUN_TRACE_HPP
2#define STAN_MATH_PRIM_FUN_TRACE_HPP
20template <
typename T, require_eigen_t<T>* =
nullptr,
21 require_not_st_var<T>* =
nullptr>
typename value_type< T >::type value_type_t
Helper function for accessing underlying type.
value_type_t< T > trace(const T &m)
Calculates trace (sum of diagonal) of given kernel generator expression.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...