diff options
author | Gael Guennebaud <g.gael@free.fr> | 2008-07-12 12:14:08 +0000 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2008-07-12 12:14:08 +0000 |
commit | 8233de8b69daf5d15daf3102b1788c833b56779c (patch) | |
tree | 384445270905affb270f249fd503d65466e5cb1c /bench/btl/generic_bench/init | |
parent | b7bd1b3446aafe2fa81b9cd3218d9fb902ba2bbc (diff) |
various minor updates in the benchmark suite like non inlining
of some functions as well as the experimental C code used to design
efficient eigen's matrix vector products.
Diffstat (limited to 'bench/btl/generic_bench/init')
-rw-r--r-- | bench/btl/generic_bench/init/init_matrix.hh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/bench/btl/generic_bench/init/init_matrix.hh b/bench/btl/generic_bench/init/init_matrix.hh index 27f8b42aa..6b57504c0 100644 --- a/bench/btl/generic_bench/init/init_matrix.hh +++ b/bench/btl/generic_bench/init/init_matrix.hh @@ -1,14 +1,14 @@ //===================================================== // File : init_matrix.hh -// Author : L. Plagne <laurent.plagne@edf.fr)> +// Author : L. Plagne <laurent.plagne@edf.fr)> // Copyright (C) EDF R&D, lun sep 30 14:23:19 CEST 2002 //===================================================== -// +// // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; either version 2 // of the License, or (at your option) any later version. -// +// // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the @@ -16,7 +16,7 @@ // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -// +// #ifndef INIT_MATRIX_HH #define INIT_MATRIX_HH @@ -25,7 +25,7 @@ // [] operator for setting element // value_type defined template<double init_function(int,int), class Vector> -void init_row(Vector & X, int size, int row){ +BTL_DONT_INLINE void init_row(Vector & X, int size, int row){ X.resize(size); @@ -40,14 +40,14 @@ void init_row(Vector & X, int size, int row){ // resize() method // [] operator for setting rows template<double init_function(int,int),class Vector> -void init_matrix(Vector & A, int size){ +BTL_DONT_INLINE void init_matrix(Vector & A, int size){ A.resize(size); for (int row=0; row<A.size() ; row++){ init_row<init_function>(A[row],size,row); } - - + + } #endif |