1 #ifndef STAN_MATH_PRIM_SCAL_FUN_OFFSET_MULTIPLIER_CONSTRAIN_HPP 2 #define STAN_MATH_PRIM_SCAL_FUN_OFFSET_MULTIPLIER_CONSTRAIN_HPP 4 #include <boost/math/tools/promotion.hpp> 40 template <
typename T,
typename M,
typename S>
41 inline typename boost::math::tools::promote_args<T, M, S>::type
43 check_finite(
"offset_multiplier_constrain",
"offset", mu);
50 return fma(sigma, x, mu);
79 template <
typename T,
typename M,
typename S>
80 inline typename boost::math::tools::promote_args<T, M, S>::type
83 check_finite(
"offset_multiplier_constrain",
"offset", mu);
91 return fma(sigma, x, mu);
void check_finite(const char *function, const char *name, const T_y &y)
Check if y is finite.
boost::math::tools::promote_args< T, M, S >::type offset_multiplier_constrain(const T &x, const M &mu, const S &sigma)
Return the linearly transformed value for the specified unconstrained input and specified offset and ...
fvar< T > log(const fvar< T > &x)
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)