* more MSVC warning fixes from Kenneth Riddile

* actually GCC 4.3.0 has a bug, "deprecated" placed at the end
  of a function prototype doesn't have any effect, moving them to
  the start of the function prototype makes it actually work!
* finish porting the cholesky unit-test to the new LLT/LDLT,
  after the above fix revealed a deprecated warning
This commit is contained in:
Benoit Jacob
2008-12-19 02:59:04 +00:00
parent f34a4fa335
commit 84bb868f07
5 changed files with 11 additions and 6 deletions

View File

@@ -63,9 +63,9 @@ template<typename MatrixType> void cholesky(const MatrixType& m)
convert<VectorType>(vecB, gVecX);
Gsl::cholesky(gMatA);
Gsl::cholesky_solve(gMatA, gVecB, gVecX);
VectorType vecX, _vecX, _vecB;
VectorType vecX(rows), _vecX, _vecB;
convert(gVecX, _vecX);
vecX.set( symm.cholesky().solve(vecB) );
symm.llt().solve(vecB, &vecX);
Gsl::prod(gSymm, gVecX, gVecB);
convert(gVecB, _vecB);
// test gsl itself !