Fixed warnings

release/4.3a0
Richard Roberts 2010-03-08 14:06:07 +00:00
parent d478767d4d
commit 74f8102d29
3 changed files with 4 additions and 7 deletions

View File

@ -54,7 +54,7 @@ template<class Factor>
void FactorGraph<Factor>::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());

View File

@ -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

View File

@ -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