aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/btl/libs/hand_vec/hand_vec_interface.hh
diff options
context:
space:
mode:
Diffstat (limited to 'bench/btl/libs/hand_vec/hand_vec_interface.hh')
-rwxr-xr-xbench/btl/libs/hand_vec/hand_vec_interface.hh8
1 files changed, 4 insertions, 4 deletions
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<real>::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<real>(N*N);
+ A = ei_aligned_new<real>(N*N);
for (int j=0;j<N;j++)
for (int i=0;i<N;i++)
A[i+N*j] = A_stl[j][i];
@@ -55,7 +55,7 @@ public :
static inline void vector_from_stl(gene_vector & B, stl_vector & B_stl){
int N = B_stl.size();
- B = ei_aligned_malloc<real>(N);
+ B = ei_aligned_new<real>(N);
for (int i=0;i<N;i++)
B[i] = B_stl[i];
}