diff --git a/src/stan/mcmc/chainset.hpp b/src/stan/mcmc/chainset.hpp index bc14171306..3846212e95 100644 --- a/src/stan/mcmc/chainset.hpp +++ b/src/stan/mcmc/chainset.hpp @@ -339,7 +339,7 @@ class chainset { } Eigen::MatrixXd draws = samples(index); Eigen::Map map(draws.data(), draws.size()); - std::vector probs_vec(probs.data(), probs.data() + probs.size()); + std::vector probs_vec(probs.data(), probs.data() + probs.size()); std::vector quantiles = stan::math::quantile(map, probs_vec); return Eigen::Map(quantiles.data(), quantiles.size()); }