1 #ifndef STAN_MATH_PRIM_SCAL_FUN_LOCSCALE_CONSTRAIN_HPP 2 #define STAN_MATH_PRIM_SCAL_FUN_LOCSCALE_CONSTRAIN_HPP 5 #include <boost/math/tools/promotion.hpp> 38 template <
typename T,
typename M,
typename S>
39 inline typename boost::math::tools::promote_args<T, M, S>::type
48 return fma(sigma, x, mu);
77 template <
typename T,
typename M,
typename S>
78 inline typename boost::math::tools::promote_args<T, M, S>::type
89 return fma(sigma, x, mu);
void check_finite(const char *function, const char *name, const T_y &y)
Check if y is finite.
fvar< T > log(const fvar< T > &x)
boost::math::tools::promote_args< T, M, S >::type locscale_constrain(const T &x, const M &mu, const S &sigma)
Return the linearly transformed value for the specified unconstrained input and specified location an...
T identity_constrain(const T &x)
Returns the result of applying the identity constraint transform to the input.
void check_positive_finite(const char *function, const char *name, const T_y &y)
Check if y is positive and finite.
fvar< typename stan::return_type< T1, T2, T3 >::type > fma(const fvar< T1 > &x1, const fvar< T2 > &x2, const fvar< T3 > &x3)
The fused multiply-add operation (C99).
size_t size_of(const T &x)
Returns the size of the provided vector or the constant 1 if the input argument is not a vector...
fvar< T > multiply_log(const fvar< T > &x1, const fvar< T > &x2)