1#ifndef STAN_MATH_REV_CONSTRAINT_IDENTITY_CONSTRAIN_HPP
2#define STAN_MATH_REV_CONSTRAINT_IDENTITY_CONSTRAIN_HPP
22template <
typename T,
typename... Types,
23 require_eigen_vt<std::is_arithmetic, T>* =
nullptr,
26 return var_value<plain_type_t<T>>(x);
29template <
typename T,
typename... Types, require_eigen_vt<is_var, T>* =
nullptr,
35template <
typename T,
typename... Types, require_var_matrix_t<T>* =
nullptr,
require_any_t< is_var_matrix< std::decay_t< Types > >... > require_any_var_matrix_t
Require any of the types satisfy is_var_matrix.
var_value< Eigen::Matrix< double, T::RowsAtCompileTime, T::ColsAtCompileTime > > to_var_value(const T &a)
Converts an Eigen matrix (or vector or row_vector) or expression of vars into var_value.
auto identity_constrain(T &&x, Types &&...)
Returns the result of applying the identity constraint transform to the input.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...