diff --git a/cpp/GaussianConditional.cpp b/cpp/GaussianConditional.cpp index 1029cb030..b39fafed1 100644 --- a/cpp/GaussianConditional.cpp +++ b/cpp/GaussianConditional.cpp @@ -63,28 +63,6 @@ bool GaussianConditional::equals(const Conditional &c, double tol) const { // check if the size of the parents_ map is the same if (parents_.size() != p->parents_.size()) return false; - // check if R_ and d_ are equal up to a sign -// for (size_t i=0; iR_, i); -// if (!((::equal_with_abs_tol(row1, row2, tol) && fabs(d_(i) - p->d_(i)) < tol) || -// (::equal_with_abs_tol(row1, row2*(-1), tol) && fabs(d_(i) + p->d_(i)) < tol))) -// return false; -// -// float sign = ::equal_with_abs_tol(row1, row2, tol) ? 1 : -1; -// -// // check if the matrices are the same -// // iterate over the parents_ map -// for (it = parents_.begin(); it != parents_.end(); it++) { -// Parents::const_iterator it2 = p->parents_.find(it->first); -// if (it2 != p->parents_.end()) { -// if (!::equal_with_abs_tol(row_(it->second*sign, i), row_(it2->second,i), tol)) -// return false; -// } else -// return false; -// } -// -// } // check if R_ and d_ are linear independent for (size_t i=0; i rows1; rows1.push_back(row_(R_, i));