From c456e8e6f0afb7f0af67a564525588fe64e01ab6 Mon Sep 17 00:00:00 2001 From: James J Balamuta Date: Sat, 30 Nov 2024 06:43:53 +0000 Subject: [PATCH] Correct deletion location --- include/ensmallen_bits/problems/dtlz/dtlz7_function.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ensmallen_bits/problems/dtlz/dtlz7_function.hpp b/include/ensmallen_bits/problems/dtlz/dtlz7_function.hpp index cf14beab4..99a262f0f 100644 --- a/include/ensmallen_bits/problems/dtlz/dtlz7_function.hpp +++ b/include/ensmallen_bits/problems/dtlz/dtlz7_function.hpp @@ -110,6 +110,7 @@ namespace test { */ arma::Row g(const MatType& coords) { + size_t k = numVariables - numObjectives + 1; // Convenience typedef. typedef typename MatType::elem_type ElemType; @@ -130,7 +131,6 @@ namespace test { arma::Row h( const MatType& coords, const arma::Row& G) { - size_t k = numVariables - numObjectives + 1; // Convenience typedef. typedef typename MatType::elem_type ElemType;