Commit d8ae0d0d authored by Jason Rhinelander's avatar Jason Rhinelander
Browse files

Eigen 3.2.2 fix: don't specify size of null vector

This results in a compilation error on jessie, and isn't needed (the
default constructor does what we want anyway).
parent 745ff2d2
......@@ -168,7 +168,7 @@ void BayesianLinearRestricted::gibbsInitialize(const Ref<const VectorXd> &initia
if (not gibbs_r_Rbeta_) gibbs_r_Rbeta_.reset(
restrict_size_ == 0
? new VectorXd(0)
? new VectorXd()
: new VectorXd(r() - R() * beta_));
const auto &r_minus_Rbeta_ = *gibbs_r_Rbeta_;
......@@ -230,7 +230,7 @@ const VectorXd& BayesianLinearRestricted::drawGibbs() {
if (not gibbs_r_Rbeta_) gibbs_r_Rbeta_.reset(
restrict_size_ == 0
? new VectorXd(0)
? new VectorXd()
: new VectorXd(r() - R() * beta_));
const auto &r_minus_Rbeta_ = *gibbs_r_Rbeta_;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment