Potential problem in VerticalBlockMatrix

Issue #75 resolved
Frank Dellaert created an issue

Clang says "/Users/frank/borg/gtsam/gtsam/base/SymmetricBlockMatrix.cpp:56:7: Logical not is only applied to the left hand side of this comparison" in "if (!blockStart() == 0)" for code below:

VerticalBlockMatrix SymmetricBlockMatrix::choleskyPartial(
    DenseIndex nFrontals) {
  // Do dense elimination
  if (!blockStart() == 0)
    throw std::invalid_argument(
        "Can only do Cholesky when the SymmetricBlockMatrix is not a restricted view, i.e. when blockStart == 0.");

Comments (3)

  1. Log in to comment