diff options
author | Gael Guennebaud <g.gael@free.fr> | 2009-07-28 17:10:34 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2009-07-28 17:10:34 +0200 |
commit | de8b7958958fe2a40719fd8e47bd9cace998bd2a (patch) | |
tree | 7446b569fafe9c9f73bf889c39a3b762470b01bf /bench/btl/actions | |
parent | 7ed7ec64b543095d6f30139ff26706ad3ab1278c (diff) |
compilation fixes in BTL
Diffstat (limited to 'bench/btl/actions')
-rw-r--r-- | bench/btl/actions/action_matrix_matrix_product.hh | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/bench/btl/actions/action_matrix_matrix_product.hh b/bench/btl/actions/action_matrix_matrix_product.hh index 048594c70..f65ee0529 100644 --- a/bench/btl/actions/action_matrix_matrix_product.hh +++ b/bench/btl/actions/action_matrix_matrix_product.hh @@ -110,19 +110,17 @@ public : void check_result( void ){ // calculation check - - Interface::matrix_to_stl(X,resu_stl); - - STL_interface<typename Interface::real_type>::matrix_matrix_product(A_stl,B_stl,X_stl,_size); - - typename Interface::real_type error= - STL_interface<typename Interface::real_type>::norm_diff(X_stl,resu_stl); - - if (error>1.e-6){ - INFOS("WRONG CALCULATION...residual=" << error); -// exit(1); + if (_size<200) + { + Interface::matrix_to_stl(X,resu_stl); + STL_interface<typename Interface::real_type>::matrix_matrix_product(A_stl,B_stl,X_stl,_size); + typename Interface::real_type error= + STL_interface<typename Interface::real_type>::norm_diff(X_stl,resu_stl); + if (error>1.e-6){ + INFOS("WRONG CALCULATION...residual=" << error); + exit(1); + } } - } private : |