Lint cleanup from William Rucklidge
Change-Id: Id8b99a2f557efe3744e95a3947f26cdc0c9c269e
diff --git a/internal/ceres/solver_impl.cc b/internal/ceres/solver_impl.cc
index 43c0be6..5779299 100644
--- a/internal/ceres/solver_impl.cc
+++ b/internal/ceres/solver_impl.cc
@@ -1357,8 +1357,8 @@
// CGNR currently only supports the JACOBI preconditioner.
options->preconditioner_type = JACOBI;
} else {
- msg += StringPrintf("ITERATIVE_SCHUR with IDENTITY preconditioner "
- "to CGNR with IDENTITY preconditioner.");
+ msg += "ITERATIVE_SCHUR with IDENTITY preconditioner"
+ "to CGNR with IDENTITY preconditioner.";
}
}
LOG(WARNING) << msg;
@@ -1371,8 +1371,8 @@
string* error) {
// At this point one of two things is true.
//
- // 1. The user did not specify an ordering - ordering has one
- // group containined all the parameter blocks.
+ // 1. The user did not specify an ordering - ordering has one group
+ // containing all the parameter blocks.
// 2. The user specified an ordering, and the first group has
// non-zero elements.
@@ -1425,7 +1425,7 @@
TripletSparseMatrix* SolverImpl::CreateJacobianBlockSparsityTranspose(
const Program* program) {
- // Matrix to store the block sparsity structure of
+ // Matrix to store the block sparsity structure of the Jacobian.
TripletSparseMatrix* tsm =
new TripletSparseMatrix(program->NumParameterBlocks(),
program->NumResidualBlocks(),
diff --git a/internal/ceres/solver_impl.h b/internal/ceres/solver_impl.h
index 22ca622..60fd2a2 100644
--- a/internal/ceres/solver_impl.h
+++ b/internal/ceres/solver_impl.h
@@ -167,7 +167,7 @@
// by the Schur eliminator occur before others and the residuals be
// sorted in lexicographic order of their parameter blocks.
//
- // If ordering has atleast two groups, then apply the ordering,
+ // If ordering has at least two groups, then apply the ordering,
// otherwise compute a new ordering using a Maximal Independent Set
// algorithm and apply it.
//
diff --git a/internal/ceres/suitesparse.cc b/internal/ceres/suitesparse.cc
index 5138b52..d576f6a 100644
--- a/internal/ceres/suitesparse.cc
+++ b/internal/ceres/suitesparse.cc
@@ -172,7 +172,8 @@
return factor;
}
-cholmod_factor* SuiteSparse::AnalyzeCholeskyWithNaturalOrdering(cholmod_sparse* A) {
+cholmod_factor* SuiteSparse::AnalyzeCholeskyWithNaturalOrdering(
+ cholmod_sparse* A) {
cc_.nmethods = 1;
cc_.method[0].ordering = CHOLMOD_NATURAL;
cc_.postorder = 0;