Automatic Differentiation
 
Loading...
Searching...
No Matches
positive_constrain.hpp File Reference
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/exp.hpp>
#include <stan/math/prim/fun/sum.hpp>
#include <cmath>

Go to the source code of this file.

Namespaces

namespace  stan
 The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation from C or the boost::math::lgamma implementation.
 
namespace  stan::math
 Matrices and templated mathematical functions.
 

Functions

template<typename T >
auto stan::math::positive_constrain (const T &x)
 Return the positive value for the specified unconstrained input.
 
template<typename T , typename S >
auto stan::math::positive_constrain (const T &x, S &lp)
 Return the positive value for the specified unconstrained input, incrementing the scalar reference with the log absolute Jacobian determinant.
 
template<bool Jacobian, typename T , require_not_std_vector_t< T > * = nullptr>
auto stan::math::positive_constrain (const T &x, return_type_t< T > &lp)
 Return the positive value for the specified unconstrained input.