From: Chih-Jen Lin Date: Thu, 31 Dec 2015 11:01:15 +0000 (+0800) Subject: the array D for the diagonal matrix in Hessian isn't needed for l2_loss problems X-Git-Tag: v211~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c1b10b56a104d92a16ce255fd140c1ef686ce82b;p=liblinear the array D for the diagonal matrix in Hessian isn't needed for l2_loss problems so we remove it. It's now only used for lr. --- diff --git a/linear.cpp b/linear.cpp index 0aadba3..b7bfeca 100644 --- a/linear.cpp +++ b/linear.cpp @@ -233,7 +233,6 @@ protected: double *C; double *z; - double *D; int *I; int sizeI; const problem *prob; @@ -246,7 +245,6 @@ l2r_l2_svc_fun::l2r_l2_svc_fun(const problem *prob, double *C) this->prob = prob; z = new double[l]; - D = new double[l]; I = new int[l]; this->C = C; } @@ -254,7 +252,6 @@ l2r_l2_svc_fun::l2r_l2_svc_fun(const problem *prob, double *C) l2r_l2_svc_fun::~l2r_l2_svc_fun() { delete[] z; - delete[] D; delete[] I; }