From 1d52bd4cad64d8d8662f40c11210b705351b43ab Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Thu, 8 Jan 2009 15:20:21 +0000 Subject: the big memory changes. the most important changes are: ei_aligned_malloc now really behaves like a malloc (untyped, doesn't call ctor) ei_aligned_new is the typed variant calling ctor EIGEN_MAKE_ALIGNED_OPERATOR_NEW now takes the class name as parameter --- bench/btl/libs/hand_vec/hand_vec_interface.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bench/btl') diff --git a/bench/btl/libs/hand_vec/hand_vec_interface.hh b/bench/btl/libs/hand_vec/hand_vec_interface.hh index 592be82d5..4e7d549ce 100755 --- a/bench/btl/libs/hand_vec/hand_vec_interface.hh +++ b/bench/btl/libs/hand_vec/hand_vec_interface.hh @@ -38,16 +38,16 @@ public : typedef typename f77_interface_base::gene_vector gene_vector; static void free_matrix(gene_matrix & A, int N){ - ei_aligned_free(A, 0); + ei_aligned_delete(A); } static void free_vector(gene_vector & B){ - ei_aligned_free(B, 0); + ei_aligned_delete(B); } static inline void matrix_from_stl(gene_matrix & A, stl_matrix & A_stl){ int N = A_stl.size(); - A = ei_aligned_malloc(N*N); + A = ei_aligned_new(N*N); for (int j=0;j(N); + B = ei_aligned_new(N); for (int i=0;i