From eec820c92e8bec21c5abd214de55277c4ab207fc Mon Sep 17 00:00:00 2001 From: Davis King Date: Tue, 21 Mar 2017 09:50:01 -0400 Subject: [PATCH] Removed unneeded code. --- dlib/optimization/optimization_solve_qp_using_smo.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/dlib/optimization/optimization_solve_qp_using_smo.h b/dlib/optimization/optimization_solve_qp_using_smo.h index 20f39a398..f205b71cd 100644 --- a/dlib/optimization/optimization_solve_qp_using_smo.h +++ b/dlib/optimization/optimization_solve_qp_using_smo.h @@ -743,8 +743,6 @@ namespace dlib std::vector> v(alphas), v_old(alphas.size()); - for (size_t i = 0; i < v_old.size(); ++i) - v_old[i].set_size(alphas.size()); double lambda = 0; unsigned long iter; // Now do the main iteration block of this solver. The coordinate descent method