From 1c75e942f956432150f4c8c3b4c54df9baf52e04 Mon Sep 17 00:00:00 2001 From: Wei-Lin Chiang Date: Wed, 7 Sep 2016 12:54:09 +0800 Subject: [PATCH] Remove a redundant array in Hv functions --- linear.cpp | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/linear.cpp b/linear.cpp index 2ec2541..e1d12e3 100644 --- a/linear.cpp +++ b/linear.cpp @@ -173,7 +173,6 @@ void l2r_lr_fun::Hv(double *s, double *Hs) int i; int l=prob->l; int w_size=get_nr_variable(); - double *wa = new double[l]; feature_node **x=prob->x; for(i=0;ix; for(i=0;i