aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/btl/actions/action_syr2.hh
diff options
context:
space:
mode:
Diffstat (limited to 'bench/btl/actions/action_syr2.hh')
-rw-r--r--bench/btl/actions/action_syr2.hh21
1 files changed, 0 insertions, 21 deletions
diff --git a/bench/btl/actions/action_syr2.hh b/bench/btl/actions/action_syr2.hh
index d5ef07411..7c6712b13 100644
--- a/bench/btl/actions/action_syr2.hh
+++ b/bench/btl/actions/action_syr2.hh
@@ -37,32 +37,23 @@ public :
BTL_DONT_INLINE Action_syr2( int size ):_size(size)
{
- MESSAGE("Action_syr2 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_vector<pseudo_random>(B_stl,_size);
init_vector<pseudo_random>(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);
Interface::vector_from_stl(B,B_stl);
Interface::vector_from_stl(X_ref,X_stl);
Interface::vector_from_stl(X,X_stl);
-
}
// invalidate copy ctor
-
Action_syr2( const Action_syr2 & )
{
INFOS("illegal call to Action_syr2 Copy Ctor");
@@ -70,21 +61,13 @@ public :
}
// Dtor
-
BTL_DONT_INLINE ~Action_syr2( void ){
-
- MESSAGE("Action_syr2 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
@@ -99,11 +82,9 @@ public :
}
BTL_DONT_INLINE void initialize( void ){
-
Interface::copy_matrix(A_ref,A,_size);
Interface::copy_vector(B_ref,B,_size);
Interface::copy_vector(X_ref,X,_size);
-
}
BTL_DONT_INLINE void calculate( void ) {
@@ -113,9 +94,7 @@ public :
}
BTL_DONT_INLINE void check_result( void ){
-
// calculation check
-return;
Interface::vector_to_stl(X,resu_stl);
STL_interface<typename Interface::real_type>::syr2(A_stl,B_stl,X_stl,_size);