aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-12-19 02:59:04 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-12-19 02:59:04 +0000
commit84bb868f07361af7991abd1f0cdb8017af96c0a5 (patch)
tree2d1361c0ae718bb31af9f650605f8c4b83adba49 /test
parentf34a4fa3358133e05afcf0845a58497d16436977 (diff)
* 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
Diffstat (limited to 'test')
-rw-r--r--test/cholesky.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cholesky.cpp b/test/cholesky.cpp
index a64a45c45..eb613cd6a 100644
--- a/test/cholesky.cpp
+++ b/test/cholesky.cpp
@@ -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 !