aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/btl/actions/action_cholesky.hh
diff options
context:
space:
mode:
Diffstat (limited to 'bench/btl/actions/action_cholesky.hh')
-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);