aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/btl/actions/action_symv.hh
diff options
context:
space:
mode:
Diffstat (limited to 'bench/btl/actions/action_symv.hh')
-rw-r--r--bench/btl/actions/action_symv.hh19
1 files changed, 2 insertions, 17 deletions
diff --git a/bench/btl/actions/action_symv.hh b/bench/btl/actions/action_symv.hh
index f520623a8..a32b9dfa0 100644
--- a/bench/btl/actions/action_symv.hh
+++ b/bench/btl/actions/action_symv.hh
@@ -40,18 +40,12 @@ public :
MESSAGE("Action_symv Ctor");
// STL matrix and vector initialization
-
- typename Interface::stl_matrix tmp;
- init_matrix<pseudo_random>(A_stl,_size);
- init_matrix<pseudo_random>(tmp,_size);
+ init_matrix_symm<pseudo_random>(A_stl,_size);
init_vector<pseudo_random>(B_stl,_size);
init_vector<null_function>(X_stl,_size);
init_vector<null_function>(resu_stl,_size);
- STL_interface<typename Interface::real_type>::ata_product(tmp,A_stl,_size);
-
// generic matrix and vector initialization
-
Interface::matrix_from_stl(A_ref,A_stl);
Interface::matrix_from_stl(A,A_stl);
Interface::vector_from_stl(B_ref,B_stl);
@@ -70,21 +64,13 @@ public :
}
// Dtor
-
BTL_DONT_INLINE ~Action_symv( void ){
-
- MESSAGE("Action_symv Dtor");
-
- // deallocation
-
Interface::free_matrix(A,_size);
Interface::free_vector(B);
Interface::free_vector(X);
-
Interface::free_matrix(A_ref,_size);
Interface::free_vector(B_ref);
Interface::free_vector(X_ref);
-
}
// action name
@@ -113,9 +99,8 @@ public :
}
BTL_DONT_INLINE void check_result( void ){
-
+ if (_size>128) return;
// calculation check
-
Interface::vector_to_stl(X,resu_stl);
STL_interface<typename Interface::real_type>::symv(A_stl,B_stl,X_stl,_size);