1#ifndef STAN_MATH_PRIM_CONSTRAINT_POSITIVE_FREE_HPP
2#define STAN_MATH_PRIM_CONSTRAINT_POSITIVE_FREE_HPP
30 auto&& y_ref =
to_ref(std::forward<T>(y));
32 return log(std::forward<
decltype(y_ref)>(y_ref));
fvar< T > log(const fvar< T > &x)
auto positive_free(T &&y)
Return the unconstrained value corresponding to the specified positive-constrained value.
void check_positive(const char *function, const char *name, const T_y &y)
Check if y is positive.
ref_type_t< T && > to_ref(T &&a)
This evaluates expensive Eigen expressions.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...