/dports/math/py-pystan/pystan-2.19.0.0/pystan/stan/lib/stan_math/stan/math/prim/scal/prob/ |
H A D | frechet_lpdf.hpp | 50 if (!include_summand<propto, T_y, T_shape, T_scale>::value) in frechet_lpdf() 54 scalar_seq_view<T_shape> alpha_vec(alpha); in frechet_lpdf() 59 T_shape> in frechet_lpdf() 62 if (include_summand<propto, T_shape>::value) in frechet_lpdf() 69 if (include_summand<propto, T_y, T_shape>::value) in frechet_lpdf() 76 if (include_summand<propto, T_shape, T_scale>::value) in frechet_lpdf() 87 T_partials_return, T_y, T_shape, T_scale> in frechet_lpdf() 99 if (include_summand<propto, T_shape>::value) in frechet_lpdf() 101 if (include_summand<propto, T_y, T_shape>::value) in frechet_lpdf() 103 if (include_summand<propto, T_shape, T_scale>::value) in frechet_lpdf() [all …]
|
H A D | weibull_lpdf.hpp | 60 if (!include_summand<propto, T_y, T_shape, T_scale>::value) in weibull_lpdf() 64 scalar_seq_view<T_shape> alpha_vec(alpha); in weibull_lpdf() 75 T_shape> in weibull_lpdf() 78 if (include_summand<propto, T_shape>::value) in weibull_lpdf() 85 if (include_summand<propto, T_y, T_shape>::value) in weibull_lpdf() 92 if (include_summand<propto, T_shape, T_scale>::value) in weibull_lpdf() 103 T_partials_return, T_y, T_shape, T_scale> in weibull_lpdf() 115 if (include_summand<propto, T_shape>::value) in weibull_lpdf() 117 if (include_summand<propto, T_y, T_shape>::value) in weibull_lpdf() 119 if (include_summand<propto, T_shape, T_scale>::value) in weibull_lpdf() [all …]
|
H A D | gamma_lpdf.hpp | 75 scalar_seq_view<T_shape> alpha_vec(alpha); in gamma_lpdf() 93 if (include_summand<propto, T_y, T_shape>::value) { in gamma_lpdf() 101 T_shape> in gamma_lpdf() 103 VectorBuilder<!is_constant_struct<T_shape>::value, T_partials_return, T_shape> in gamma_lpdf() 106 if (include_summand<propto, T_shape>::value) in gamma_lpdf() 108 if (!is_constant_struct<T_shape>::value) in gamma_lpdf() 115 if (include_summand<propto, T_shape, T_inv_scale>::value) { in gamma_lpdf() 125 if (include_summand<propto, T_shape>::value) in gamma_lpdf() 127 if (include_summand<propto, T_shape, T_inv_scale>::value) in gamma_lpdf() 129 if (include_summand<propto, T_y, T_shape>::value) in gamma_lpdf() [all …]
|
H A D | pareto_lpdf.hpp | 29 typename return_type<T_y, T_scale, T_shape>::type pareto_lpdf( in pareto_lpdf() 53 scalar_seq_view<T_shape> alpha_vec(alpha); in pareto_lpdf() 66 if (include_summand<propto, T_y, T_shape>::value) { in pareto_lpdf() 74 if (contains_nonconstant_struct<T_y, T_shape>::value) { in pareto_lpdf() 82 if (include_summand<propto, T_scale, T_shape>::value) { in pareto_lpdf() 88 T_shape> in pareto_lpdf() 90 if (include_summand<propto, T_shape>::value) { in pareto_lpdf() 97 if (include_summand<propto, T_shape>::value) in pareto_lpdf() 99 if (include_summand<propto, T_scale, T_shape>::value) in pareto_lpdf() 101 if (include_summand<propto, T_y, T_shape>::value) in pareto_lpdf() [all …]
|
H A D | inv_gamma_lpdf.hpp | 72 scalar_seq_view<T_shape> alpha_vec(alpha); in inv_gamma_lpdf() 93 if (include_summand<propto, T_y, T_shape>::value) in inv_gamma_lpdf() 101 T_shape> in inv_gamma_lpdf() 103 VectorBuilder<!is_constant_struct<T_shape>::value, T_partials_return, T_shape> in inv_gamma_lpdf() 106 if (include_summand<propto, T_shape>::value) in inv_gamma_lpdf() 108 if (!is_constant_struct<T_shape>::value) in inv_gamma_lpdf() 115 if (include_summand<propto, T_shape, T_scale>::value) { in inv_gamma_lpdf() 124 if (include_summand<propto, T_shape>::value) in inv_gamma_lpdf() 126 if (include_summand<propto, T_shape, T_scale>::value) in inv_gamma_lpdf() 128 if (include_summand<propto, T_y, T_shape>::value) in inv_gamma_lpdf() [all …]
|
H A D | neg_binomial_lpmf.hpp | 53 if (!include_summand<propto, T_shape, T_inv_scale>::value) in neg_binomial_lpmf() 60 scalar_seq_view<T_shape> alpha_vec(alpha); in neg_binomial_lpmf() 80 VectorBuilder<true, T_partials_return, T_inv_scale, T_shape> in neg_binomial_lpmf() 87 VectorBuilder<!is_constant_struct<T_shape>::value, T_partials_return, T_shape> in neg_binomial_lpmf() 89 if (!is_constant_struct<T_shape>::value) { in neg_binomial_lpmf() 97 if (!is_constant_struct<T_shape>::value) { in neg_binomial_lpmf() 103 T_shape, T_inv_scale> in neg_binomial_lpmf() 116 if (include_summand<propto, T_shape, T_inv_scale>::value) in neg_binomial_lpmf() 119 if (!is_constant_struct<T_shape>::value) in neg_binomial_lpmf() 126 if (include_summand<propto, T_shape>::value) in neg_binomial_lpmf() [all …]
|
H A D | pareto_type_2_lpdf.hpp | 28 typename T_shape> 31 const T_shape& alpha) { in pareto_type_2_lpdf() 58 scalar_seq_view<T_shape> alpha_vec(alpha); in pareto_type_2_lpdf() 82 T_shape> in pareto_type_2_lpdf() 84 if (include_summand<propto, T_shape>::value) { in pareto_type_2_lpdf() 89 VectorBuilder<!is_constant_struct<T_shape>::value, T_partials_return, T_shape> in pareto_type_2_lpdf() 91 if (!is_constant_struct<T_shape>::value) { in pareto_type_2_lpdf() 106 if (include_summand<propto, T_shape>::value) in pareto_type_2_lpdf() 110 if (include_summand<propto, T_y, T_scale, T_shape>::value) in pareto_type_2_lpdf() 120 if (!is_constant_struct<T_shape>::value) in pareto_type_2_lpdf() [all …]
|
H A D | neg_binomial_lccdf.hpp | 32 template <typename T_n, typename T_shape, typename T_inv_scale> 33 typename return_type<T_shape, T_inv_scale>::type neg_binomial_lccdf( in neg_binomial_lccdf() 34 const T_n& n, const T_shape& alpha, const T_inv_scale& beta) { in neg_binomial_lccdf() 36 typedef typename stan::partials_return_type<T_n, T_shape, T_inv_scale>::type in neg_binomial_lccdf() 50 scalar_seq_view<T_shape> alpha_vec(alpha); in neg_binomial_lccdf() 59 operands_and_partials<T_shape, T_inv_scale> ops_partials(alpha, beta); in neg_binomial_lccdf() 68 VectorBuilder<!is_constant_struct<T_shape>::value, T_partials_return, T_shape> in neg_binomial_lccdf() 70 VectorBuilder<!is_constant_struct<T_shape>::value, T_partials_return, T_shape> in neg_binomial_lccdf() 72 VectorBuilder<!is_constant_struct<T_shape>::value, T_partials_return, T_shape> in neg_binomial_lccdf() 75 if (!is_constant_struct<T_shape>::value) { in neg_binomial_lccdf() [all …]
|
H A D | neg_binomial_lcdf.hpp | 32 template <typename T_n, typename T_shape, typename T_inv_scale> 33 typename return_type<T_shape, T_inv_scale>::type neg_binomial_lcdf( in neg_binomial_lcdf() 34 const T_n& n, const T_shape& alpha, const T_inv_scale& beta) { in neg_binomial_lcdf() 36 typedef typename stan::partials_return_type<T_n, T_shape, T_inv_scale>::type in neg_binomial_lcdf() 50 scalar_seq_view<T_shape> alpha_vec(alpha); in neg_binomial_lcdf() 59 operands_and_partials<T_shape, T_inv_scale> ops_partials(alpha, beta); in neg_binomial_lcdf() 68 VectorBuilder<!is_constant_struct<T_shape>::value, T_partials_return, T_shape> in neg_binomial_lcdf() 70 VectorBuilder<!is_constant_struct<T_shape>::value, T_partials_return, T_shape> in neg_binomial_lcdf() 72 VectorBuilder<!is_constant_struct<T_shape>::value, T_partials_return, T_shape> in neg_binomial_lcdf() 75 if (!is_constant_struct<T_shape>::value) { in neg_binomial_lcdf() [all …]
|
/dports/math/stanmath/math-4.2.0/stan/math/prim/prob/ |
H A D | loglogistic_lpdf.hpp | 44 T_y, T_scale, T_shape>* = nullptr> 45 return_type_t<T_y, T_scale, T_shape> loglogistic_lpdf(const T_y& y, in loglogistic_lpdf() 51 using T_shape_ref = ref_type_if_t<!is_constant<T_shape>::value, T_shape>; in loglogistic_lpdf() 72 if (!include_summand<propto, T_y, T_scale, T_shape>::value) { in loglogistic_lpdf() 101 if (include_summand<propto, T_scale, T_shape>::value) { in loglogistic_lpdf() 106 if (!is_constant_all<T_y, T_scale, T_shape>::value) { in loglogistic_lpdf() 110 + !is_constant_all<T_shape>::value in loglogistic_lpdf() 134 if (!is_constant_all<T_shape>::value) { in loglogistic_lpdf() 144 template <typename T_y, typename T_scale, typename T_shape> 145 inline return_type_t<T_y, T_scale, T_shape> loglogistic_lpdf( in loglogistic_lpdf() [all …]
|
H A D | frechet_lpdf.hpp | 30 T_y, T_shape, T_scale>* = nullptr> 31 return_type_t<T_y, T_shape, T_scale> frechet_lpdf(const T_y& y, in frechet_lpdf() 36 using T_alpha_ref = ref_type_t<T_shape>; in frechet_lpdf() 57 if (!include_summand<propto, T_y, T_shape, T_scale>::value) { in frechet_lpdf() 65 = to_ref_if<(include_summand<propto, T_y, T_shape>::value in frechet_lpdf() 69 = to_ref_if<!is_constant_all<T_y, T_shape, T_scale>::value>( in frechet_lpdf() 74 if (include_summand<propto, T_shape>::value) { in frechet_lpdf() 77 if (include_summand<propto, T_y, T_shape>::value) { in frechet_lpdf() 80 if (include_summand<propto, T_shape, T_scale>::value) { in frechet_lpdf() 84 if (!is_constant_all<T_shape>::value) { in frechet_lpdf() [all …]
|
H A D | weibull_lpdf.hpp | 39 T_y, T_shape, T_scale>* = nullptr> 40 return_type_t<T_y, T_shape, T_scale> weibull_lpdf(const T_y& y, in weibull_lpdf() 43 using T_partials_return = partials_return_t<T_y, T_shape, T_scale>; in weibull_lpdf() 45 using T_alpha_ref = ref_type_if_t<!is_constant<T_shape>::value, T_shape>; in weibull_lpdf() 67 if (!include_summand<propto, T_y, T_shape, T_scale>::value) { in weibull_lpdf() 86 = to_ref_if<!is_constant_all<T_y, T_shape, T_scale>::value>( in weibull_lpdf() 91 if (include_summand<propto, T_shape>::value) { in weibull_lpdf() 94 if (include_summand<propto, T_y, T_shape>::value) { in weibull_lpdf() 97 if (include_summand<propto, T_shape, T_scale>::value) { in weibull_lpdf() 105 if (!is_constant_all<T_shape>::value) { in weibull_lpdf() [all …]
|
H A D | pareto_lpdf.hpp | 24 template <bool propto, typename T_y, typename T_scale, typename T_shape, 26 T_y, T_scale, T_shape>* = nullptr> 27 return_type_t<T_y, T_scale, T_shape> pareto_lpdf(const T_y& y, in pareto_lpdf() 30 using T_partials_return = partials_return_t<T_y, T_scale, T_shape>; in pareto_lpdf() 33 using T_alpha_ref = ref_type_if_t<!is_constant<T_shape>::value, T_shape>; in pareto_lpdf() 53 if (!include_summand<propto, T_y, T_scale, T_shape>::value) { in pareto_lpdf() 65 if (include_summand<propto, T_shape>::value) { in pareto_lpdf() 68 if (include_summand<propto, T_y, T_shape>::value) { in pareto_lpdf() 83 if (include_summand<propto, T_scale, T_shape>::value) { in pareto_lpdf() 87 if (!is_constant_all<T_shape>::value) { in pareto_lpdf() [all …]
|
H A D | gamma_lpdf.hpp | 51 T_y, T_shape, T_inv_scale>* = nullptr> 52 return_type_t<T_y, T_shape, T_inv_scale> gamma_lpdf(const T_y& y, in gamma_lpdf() 57 using T_alpha_ref = ref_type_if_t<!is_constant<T_shape>::value, T_shape>; in gamma_lpdf() 78 if (!include_summand<propto, T_y, T_shape, T_inv_scale>::value) { in gamma_lpdf() 94 if (include_summand<propto, T_shape>::value) { in gamma_lpdf() 98 if (include_summand<propto, T_shape, T_inv_scale>::value) { in gamma_lpdf() 102 if (!is_constant_all<T_shape>::value) { in gamma_lpdf() 106 if (include_summand<propto, T_y, T_shape>::value) { in gamma_lpdf() 122 template <typename T_y, typename T_shape, typename T_inv_scale> 123 inline return_type_t<T_y, T_shape, T_inv_scale> gamma_lpdf( in gamma_lpdf() [all …]
|
H A D | inv_gamma_lpdf.hpp | 43 T_y, T_shape, T_scale>* = nullptr> 44 return_type_t<T_y, T_shape, T_scale> inv_gamma_lpdf(const T_y& y, in inv_gamma_lpdf() 49 using T_alpha_ref = ref_type_if_t<!is_constant<T_shape>::value, T_shape>; in inv_gamma_lpdf() 70 if (!include_summand<propto, T_y, T_shape, T_scale>::value) { in inv_gamma_lpdf() 85 if (include_summand<propto, T_shape>::value) { in inv_gamma_lpdf() 88 if (include_summand<propto, T_shape, T_scale>::value) { in inv_gamma_lpdf() 92 if (!is_constant_all<T_shape>::value) { in inv_gamma_lpdf() 96 if (include_summand<propto, T_y, T_shape>::value) { in inv_gamma_lpdf() 115 template <typename T_y, typename T_shape, typename T_scale> 116 inline return_type_t<T_y, T_shape, T_scale> inv_gamma_lpdf( in inv_gamma_lpdf() [all …]
|
H A D | lkj_corr_lpdf.hpp | 15 template <typename T_shape> 16 return_type_t<double, T_shape> do_lkj_constant(const T_shape& eta, in do_lkj_constant() 19 return_type_t<double, T_shape> constant; in do_lkj_constant() 48 template <bool propto, typename T_y, typename T_shape> 49 return_type_t<T_y, T_shape> lkj_corr_lpdf(const T_y& y, const T_shape& eta) { in lkj_corr_lpdf() 52 return_type_t<T_y, T_shape> lp(0.0); in lkj_corr_lpdf() 62 if (include_summand<propto, T_shape>::value) { in lkj_corr_lpdf() 66 if (eta == 1.0 && is_constant_all<scalar_type<T_shape>>::value) { in lkj_corr_lpdf() 70 if (!include_summand<propto, T_y, T_shape>::value) { in lkj_corr_lpdf() 79 template <typename T_y, typename T_shape> [all …]
|
H A D | neg_binomial_lpmf.hpp | 32 T_n, T_shape, T_inv_scale>* = nullptr> 33 return_type_t<T_shape, T_inv_scale> neg_binomial_lpmf(const T_n& n, in neg_binomial_lpmf() 39 using T_alpha_ref = ref_type_t<T_shape>; in neg_binomial_lpmf() 54 if (!include_summand<propto, T_shape, T_inv_scale>::value) { in neg_binomial_lpmf() 70 VectorBuilder<!is_constant_all<T_shape>::value, T_partials_return, T_shape> in neg_binomial_lpmf() 72 if (!is_constant_all<T_shape>::value) { in neg_binomial_lpmf() 87 T_shape, T_inv_scale> in neg_binomial_lpmf() 102 if (include_summand<propto, T_shape>::value) { in neg_binomial_lpmf() 110 if (!is_constant_all<T_shape>::value) { in neg_binomial_lpmf() 124 template <typename T_n, typename T_shape, typename T_inv_scale> [all …]
|
H A D | pareto_type_2_lcdf.hpp | 21 template <typename T_y, typename T_loc, typename T_scale, typename T_shape, 23 T_y, T_loc, T_scale, T_shape>* = nullptr> 24 return_type_t<T_y, T_loc, T_scale, T_shape> pareto_type_2_lcdf( in pareto_type_2_lcdf() 26 const T_shape& alpha) { in pareto_type_2_lcdf() 31 using T_alpha_ref = ref_type_if_t<!is_constant<T_shape>::value, T_shape>; in pareto_type_2_lcdf() 58 const auto& temp = to_ref_if<!is_constant_all<T_shape>::value>( in pareto_type_2_lcdf() 61 = to_ref_if<!is_constant_all<T_y, T_loc, T_scale, T_shape>::value>( in pareto_type_2_lcdf() 68 if (!is_constant_all<T_y, T_loc, T_scale, T_shape>::value) { in pareto_type_2_lcdf() 71 && !is_constant_all<T_shape>::value)>( in pareto_type_2_lcdf() 73 if (!is_constant_all<T_y, T_loc, T_scale, T_shape>::value) { in pareto_type_2_lcdf() [all …]
|
H A D | loglogistic_cdf.hpp | 43 template <typename T_y, typename T_scale, typename T_shape, 45 T_y, T_scale, T_shape>* = nullptr> 46 return_type_t<T_y, T_scale, T_shape> loglogistic_cdf(const T_y& y, in loglogistic_cdf() 48 const T_shape& beta) { in loglogistic_cdf() 49 using T_partials_return = partials_return_t<T_y, T_scale, T_shape>; in loglogistic_cdf() 52 using T_beta_ref = ref_type_t<T_shape>; in loglogistic_cdf() 81 = to_ref_if<!is_constant_all<T_shape>::value>(alpha_val / y_val); in loglogistic_cdf() 83 = to_ref_if<!is_constant_all<T_y, T_scale, T_shape>::value>( in loglogistic_cdf() 86 = to_ref_if<!is_constant_all<T_y, T_scale, T_shape>::value>( in loglogistic_cdf() 91 if (!is_constant_all<T_y, T_scale, T_shape>::value) { in loglogistic_cdf() [all …]
|
H A D | skew_normal_lpdf.hpp | 26 typename T_shape, 28 T_y, T_loc, T_scale, T_shape>* = nullptr> 29 return_type_t<T_y, T_loc, T_scale, T_shape> skew_normal_lpdf( in skew_normal_lpdf() 31 using T_partials_return = partials_return_t<T_y, T_loc, T_scale, T_shape>; in skew_normal_lpdf() 35 using T_alpha_ref = ref_type_if_t<!is_constant<T_shape>::value, T_shape>; in skew_normal_lpdf() 57 if (!include_summand<propto, T_y, T_loc, T_scale, T_shape>::value) { in skew_normal_lpdf() 70 = to_ref_if<!is_constant_all<T_y, T_loc, T_scale, T_shape>::value>( in skew_normal_lpdf() 86 if (!is_constant_all<T_y, T_loc, T_scale, T_shape>::value) { in skew_normal_lpdf() 91 + !is_constant_all<T_shape>::value in skew_normal_lpdf() 111 if (!is_constant_all<T_shape>::value) { in skew_normal_lpdf() [all …]
|
H A D | lkj_corr_cholesky_lpdf.hpp | 17 template <bool propto, typename T_covar, typename T_shape> 18 return_type_t<T_covar, T_shape> lkj_corr_cholesky_lpdf(const T_covar& L, in lkj_corr_cholesky_lpdf() 19 const T_shape& eta) { in lkj_corr_cholesky_lpdf() 20 using lp_ret = return_type_t<T_covar, T_shape>; in lkj_corr_cholesky_lpdf() 33 if (include_summand<propto, T_shape>::value) { in lkj_corr_cholesky_lpdf() 36 if (include_summand<propto, T_covar, T_shape>::value) { in lkj_corr_cholesky_lpdf() 44 if (eta == 1.0 && is_constant_all<scalar_type<T_shape>>::value) { in lkj_corr_cholesky_lpdf() 55 template <typename T_covar, typename T_shape> 56 inline return_type_t<T_covar, T_shape> lkj_corr_cholesky_lpdf( in lkj_corr_cholesky_lpdf() 57 const T_covar& L, const T_shape& eta) { in lkj_corr_cholesky_lpdf()
|
H A D | pareto_type_2_lpdf.hpp | 24 typename T_shape, 26 T_y, T_loc, T_scale, T_shape>* = nullptr> 27 return_type_t<T_y, T_loc, T_scale, T_shape> pareto_type_2_lpdf( in pareto_type_2_lpdf() 29 const T_shape& alpha) { in pareto_type_2_lpdf() 34 using T_alpha_ref = ref_type_if_t<!is_constant<T_shape>::value, T_shape>; in pareto_type_2_lpdf() 59 if (!include_summand<propto, T_y, T_loc, T_scale, T_shape>::value) { in pareto_type_2_lpdf() 68 if (include_summand<propto, T_shape>::value) { in pareto_type_2_lpdf() 74 if (include_summand<propto, T_y, T_loc, T_scale, T_shape>::value) { in pareto_type_2_lpdf() 104 if (!is_constant_all<T_shape>::value) { in pareto_type_2_lpdf() 112 inline return_type_t<T_y, T_loc, T_scale, T_shape> pareto_type_2_lpdf( in pareto_type_2_lpdf() [all …]
|
/dports/math/py-pystan/pystan-2.19.0.0/pystan/stan/lib/stan_math/stan/math/prim/mat/prob/ |
H A D | lkj_cov_log.hpp | 15 typename T_shape> 16 typename boost::math::tools::promote_args<T_y, T_loc, T_scale, T_shape>::type 20 const T_shape& eta) { in lkj_cov_log() 29 T_shape>::type 33 const T_shape& eta) { in lkj_cov_log() 34 return lkj_cov_lpdf<T_y, T_loc, T_scale, T_shape>(y, mu, sigma, eta); in lkj_cov_log() 41 typename T_shape> 44 const T_loc& mu, const T_scale& sigma, const T_shape& eta) { in lkj_cov_log() 53 T_shape>::type 55 const T_loc& mu, const T_scale& sigma, const T_shape& eta) { in lkj_cov_log() [all …]
|
H A D | lkj_cov_lpdf.hpp | 19 typename T_shape> 24 const T_shape& eta) { in lkj_cov_lpdf() 29 typename promote_args<T_y, T_loc, T_scale, T_shape>::type lp(0.0); in lkj_cov_lpdf() 47 if (stan::is_constant<typename stan::scalar_type<T_shape> >::value in lkj_cov_lpdf() 50 lp += lkj_corr_lpdf<propto, T_y, T_shape>(y, eta); in lkj_cov_lpdf() 55 lp += lkj_corr_lpdf<propto, T_y, T_shape>(D * y * D, eta); in lkj_cov_lpdf() 61 T_shape>::type 65 const T_shape& eta) { in lkj_cov_lpdf() 72 typename T_shape> 98 lp += lkj_corr_lpdf<propto, T_y, T_shape>(D * y * D, eta); in lkj_cov_lpdf() [all …]
|
H A D | lkj_corr_lpdf.hpp | 51 template <typename T_shape> 52 typename boost::math::tools::promote_args<double, T_shape>::type 53 do_lkj_constant(const T_shape& eta, const unsigned int& K) { in do_lkj_constant() 81 template <bool propto, typename T_y, typename T_shape> 84 const T_shape& eta) { in lkj_corr_lpdf() 89 typename promote_args<T_y, T_shape>::type lp(0.0); in lkj_corr_lpdf() 97 if (include_summand<propto, T_shape>::value) in lkj_corr_lpdf() 104 if (!include_summand<propto, T_y, T_shape>::value) in lkj_corr_lpdf() 113 template <typename T_y, typename T_shape> 114 inline typename boost::math::tools::promote_args<T_y, T_shape>::type [all …]
|