Fix typo in conditional in SymmetricBlockMatrix, fixes #75

release/4.3a0
Richard Roberts 2014-04-30 18:21:00 -07:00
parent 9dbabbc847
commit b82524882c
1 changed files with 1 additions and 1 deletions

View File

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