diff --git a/cpp/FactorGraph-inl.h b/cpp/FactorGraph-inl.h index b7163d65f..3ee00b433 100644 --- a/cpp/FactorGraph-inl.h +++ b/cpp/FactorGraph-inl.h @@ -54,7 +54,7 @@ template void FactorGraph::print(const string& s) const { cout << s << endl; printf("size: %d\n", (int) size()); - for (int i = 0; i < factors_.size(); i++) { + for (size_t i = 0; i < factors_.size(); i++) { stringstream ss; ss << "factor " << i << ":"; if (factors_[i] != NULL) factors_[i]->print(ss.str()); diff --git a/cpp/Matrix.cpp b/cpp/Matrix.cpp index 39bf7bf08..7d3d70388 100644 --- a/cpp/Matrix.cpp +++ b/cpp/Matrix.cpp @@ -536,6 +536,9 @@ inline void updateAb_manual(Matrix& A, Vector& b, int j, const Vector& a, } } +/** + * Perform updates of system matrices + */ static void updateAb(Matrix& A, Vector& b, int j, const Vector& a, const Vector& r, double d) { #ifdef GSL diff --git a/cpp/Matrix.h b/cpp/Matrix.h index d851ee092..3bba01839 100644 --- a/cpp/Matrix.h +++ b/cpp/Matrix.h @@ -210,12 +210,6 @@ void solve(Matrix& A, Matrix& B); */ Matrix inverse(const Matrix& A); -/** - * Perform updates of system matrices - */ -static void updateAb(Matrix& A, Vector& b, int j, const Vector& a, - const Vector& r, double d); - /** * QR factorization, inefficient, best use imperative householder below * m*n matrix -> m*m Q, m*n R