Commit 2d6f92c3 authored by gbalduzz's avatar gbalduzz
Browse files

Fixed initialization of weight.

parent 0b464a49
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -275,7 +275,7 @@ void CtintWalkerBase<Parameters, Real>::setMFromConfig() {

    if (M.nrRows()) {
      const auto [log_det, sign] = linalg::matrixop::inverseAndLogDeterminant(M);
      mc_log_weight_ += log_det;
      mc_log_weight_ -= log_det; // Weight proportional to det(M^{-1})
      sign_ *= sign;
    }
  }