aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/btl/actions
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2011-01-28 11:24:18 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2011-01-28 11:24:18 +0100
commit1731a432e70422f608b072062c0da5454998cb46 (patch)
treeaa56ee1a4bbd6d239b60e542c00e0f891dc63407 /bench/btl/actions
parent837f1ae59c7e71a0524410271d1553b1d0e77e66 (diff)
fix BTL cholesky action and output errors if the factorization failed
Diffstat (limited to 'bench/btl/actions')
-rw-r--r--bench/btl/actions/action_cholesky.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bench/btl/actions/action_cholesky.hh b/bench/btl/actions/action_cholesky.hh
index 1e236656c..5f66d113a 100644
--- a/bench/btl/actions/action_cholesky.hh
+++ b/bench/btl/actions/action_cholesky.hh
@@ -44,7 +44,7 @@ public :
// make sure X is invertible
for (int i=0; i<_size; ++i)
- X_stl[i][i] = X_stl[i][i] * 1e2 + 1;
+ X_stl[i][i] = std::abs(X_stl[i][i]) * 1e2 + 100;
// generic matrix and vector initialization
Interface::matrix_from_stl(X_ref,X_stl);