Skip to content

Commit 93a5084

Browse files
committed
core submodule update, fixed constexpr warning
1 parent 7acc5b5 commit 93a5084

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fdaPDE/src/distributions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ class gamma_distribution : public internals::distribution_base<std::gamma_distri
338338
constexpr result_type pdf(InputType x) const {
339339
return 1 / (std::tgamma(k_) * std::pow(theta_, k_)) * std::pow(x, k_ - 1) * std::exp(-x / theta_);
340340
}
341-
constexpr result_type cdf(double x) const { return internals::gamma_p(k_, x / theta_); }
341+
result_type cdf(double x) const { return internals::gamma_p(k_, x / theta_); }
342342
constexpr result_type mean() const { return k_ * theta_; }
343343
constexpr result_type variance() const { return k_ * theta_ * theta_; }
344344
// random sampling

0 commit comments

Comments
 (0)