From 2733b66a2324ca238ba5b837b790255d54c00c57 Mon Sep 17 00:00:00 2001 From: Sungtae An Date: Fri, 14 Nov 2014 14:08:17 -0500 Subject: [PATCH] Add a few comments --- gtsam/linear/Preconditioner.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtsam/linear/Preconditioner.cpp b/gtsam/linear/Preconditioner.cpp index 9af362fba..c7f4a5b68 100644 --- a/gtsam/linear/Preconditioner.cpp +++ b/gtsam/linear/Preconditioner.cpp @@ -125,7 +125,9 @@ void BlockJacobiPreconditioner::transposeSolve(const Vector& y, Vector& x) const void BlockJacobiPreconditioner::build( const GaussianFactorGraph &gfg, const KeyInfo &keyInfo, const std::map &lambda) { + // n is the number of keys const size_t n = keyInfo.size(); + // dims_ is a vector that contains the dimension of keys dims_ = keyInfo.colSpec(); /* prepare the buffer of block diagonals */