1#ifndef STAN_MATH_PRIM_CONSTRAINT_CORR_CONSTRAIN_HPP
2#define STAN_MATH_PRIM_CONSTRAINT_CORR_CONSTRAIN_HPP
28 return tanh(std::forward<T>(x));
46template <
typename T_x,
typename T_lp>
48 decltype(
auto) x_ref =
to_ref(std::forward<T_x>(x));
68template <
bool Jacobian,
typename T_x,
typename T_lp>
70 if constexpr (Jacobian) {
plain_type_t< T > corr_constrain(T &&x)
Return the result of transforming the specified scalar or container of values to have a valid correla...
fvar< T > tanh(const fvar< T > &x)
Return the hyperbolic tangent of the argument.
auto sum(const std::vector< T > &m)
Return the sum of the entries of the specified standard vector.
fvar< T > log_cosh(const fvar< T > &x)
Return the natural logarithm of the hyperbolic cosine of the argument.
ref_type_t< T && > to_ref(T &&a)
This evaluates expensive Eigen expressions.
typename plain_type< std::decay_t< T > >::type plain_type_t
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...