formatting and comments

release/4.3a0
Frank Dellaert 2009-12-26 15:06:21 +00:00
parent 8dbf79706e
commit 886c7dcdcc
1 changed files with 1 additions and 1 deletions

View File

@ -275,6 +275,7 @@ VectorConfig GaussianFactorGraph::conjugateGradientDescent(
// loop over remaining (n-1) dimensions // loop over remaining (n-1) dimensions
int n = d.dim(); int n = d.dim();
for (int k=2;k<=n;k++) { for (int k=2;k<=n;k++) {
// calculate gradient and check for convergence // calculate gradient and check for convergence
VectorConfig gk = gradient(x); VectorConfig gk = gradient(x);
double dotg = dot(gk,gk); double dotg = dot(gk,gk);
@ -291,7 +292,6 @@ VectorConfig GaussianFactorGraph::conjugateGradientDescent(
return x; return x;
} }
/* ************************************************************************* */
/* ************************************************************************* */ /* ************************************************************************* */
boost::shared_ptr<VectorConfig> boost::shared_ptr<VectorConfig>
GaussianFactorGraph::gradientDescent_(const VectorConfig& x0) const { GaussianFactorGraph::gradientDescent_(const VectorConfig& x0) const {