Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ensmallen for openSUSE:Factory 
checked in at 2023-03-03 22:28:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ensmallen (Old)
 and      /work/SRC/openSUSE:Factory/.ensmallen.new.31432 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ensmallen"

Fri Mar  3 22:28:28 2023 rev:5 rq:1069112 version:2.19.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/ensmallen/ensmallen.changes      2022-12-05 
18:01:09.408567092 +0100
+++ /work/SRC/openSUSE:Factory/.ensmallen.new.31432/ensmallen.changes   
2023-03-03 22:31:35.300077588 +0100
@@ -1,0 +2,6 @@
+Fri Mar  3 09:13:33 UTC 2023 - Dirk Müller <dmuel...@suse.com>
+
+- update to 2.19.1:
+  * Avoid deprecation warnings in Armadillo 11.2+  
+
+-------------------------------------------------------------------

Old:
----
  ensmallen-2.19.0.tar.gz

New:
----
  ensmallen-2.19.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ensmallen.spec ++++++
--- /var/tmp/diff_new_pack.bTymL7/_old  2023-03-03 22:31:35.968080436 +0100
+++ /var/tmp/diff_new_pack.bTymL7/_new  2023-03-03 22:31:35.976080471 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ensmallen
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 # Copyright (c) 2020 Markus Kolb <novell+ensmal...@tower-net.de>
 #
 # All modifications and additions to the file contributed by third parties
@@ -18,7 +18,7 @@
 
 
 Name:           ensmallen
-Version:        2.19.0
+Version:        2.19.1
 Release:        0
 Summary:        Math optimization C++ library
 License:        BSD-3-Clause AND MPL-2.0 AND BSL-1.0

++++++ ensmallen-2.19.0.tar.gz -> ensmallen-2.19.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ensmallen-2.19.0/HISTORY.md 
new/ensmallen-2.19.1/HISTORY.md
--- old/ensmallen-2.19.0/HISTORY.md     2022-04-09 03:10:49.000000000 +0200
+++ new/ensmallen-2.19.1/HISTORY.md     2023-01-28 20:25:03.000000000 +0100
@@ -1,5 +1,7 @@
 ### ensmallen ?.??.?: "???"
 ###### ????-??-??
+* Avoid deprecation warnings in Armadillo 11.2+
+   ([#347](https://github.com/mlpack/ensmallen/pull/347)).
 
 ### ensmallen 2.19.0: "Eight Ball Deluxe"
 ###### 2022-04-06
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ensmallen-2.19.0/doc/optimizers.md 
new/ensmallen-2.19.1/doc/optimizers.md
--- old/ensmallen-2.19.0/doc/optimizers.md      2022-04-09 03:10:49.000000000 
+0200
+++ new/ensmallen-2.19.1/doc/optimizers.md      2023-01-28 20:25:03.000000000 
+0100
@@ -1892,8 +1892,8 @@
 
 ```c++
 SchafferFunctionN1<arma::mat> SCH;
-arma::vec lowerBound("-10 -10");
-arma::vec upperBound("10 10");
+arma::vec lowerBound("-10");
+arma::vec upperBound("10");
 DefaultMOEAD opt(300, 300, 1.0, 0.9, 20, 20, 0.5, 2, 1E-10, lowerBound, 
upperBound);
 typedef decltype(SCH.objectiveA) ObjectiveTypeA;
 typedef decltype(SCH.objectiveB) ObjectiveTypeB;
@@ -1954,8 +1954,8 @@
 
 ```c++
 SchafferFunctionN1<arma::mat> SCH;
-arma::vec lowerBound("-1000 -1000");
-arma::vec upperBound("1000 1000");
+arma::vec lowerBound("-1000");
+arma::vec upperBound("1000");
 NSGA2 opt(20, 5000, 0.5, 0.5, 1e-3, 1e-6, lowerBound, upperBound);
 
 typedef decltype(SCH.objectiveA) ObjectiveTypeA;
@@ -1967,7 +1967,7 @@
 // obj will contain the minimum sum of objectiveA and objectiveB found on the 
best front.
 double obj = opt.Optimize(objectives, coords);
 // Now obtain the best front.
-arma::cube bestFront = opt.Front();
+arma::cube bestFront = opt.ParetoFront();
 ```
 
 </details>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ensmallen-2.19.0/tests/frankwolfe_test.cpp 
new/ensmallen-2.19.1/tests/frankwolfe_test.cpp
--- old/ensmallen-2.19.0/tests/frankwolfe_test.cpp      2022-04-09 
03:10:49.000000000 +0200
+++ new/ensmallen-2.19.1/tests/frankwolfe_test.cpp      2023-01-28 
20:25:03.000000000 +0100
@@ -28,8 +28,7 @@
   mat B1 = eye(3, 3);
   mat B2 = 0.1 * randn(3, k);
   mat A = join_horiz(B1, B2); // The dictionary is input as columns of A.
-  vec b;
-  b << 1 << 1 << 0; // Vector to be sparsely approximated.
+  vec b = {1.0, 1.0, 0.0}; // Vector to be sparsely approximated.
 
   FuncSq f(A, b);
   ConstrLpBallSolver linearConstrSolver(1);
@@ -85,14 +84,12 @@
 {
   // The dictionary is input as columns of A.
   const int k = 3;
-  mat B1;
-  B1 << 1 << 0 << 1 << endr
-     << 0 << 1 << 1 << endr
-     << 0 << 0 << 1 << endr;
+  mat B1 = { { 1.0, 0.0, 1.0 },
+             { 0.0, 1.0, 1.0 },
+             { 0.0, 0.0, 1.0 } };
   mat B2 = randu(k, k);
   mat A = join_horiz(B1, B2); // The dictionary is input as columns of A.
-  vec b;
-  b << 1 << 1 << 0; // Vector to be sparsely approximated.
+  vec b = { 1.0, 1.0, 0.0 }; // Vector to be sparsely approximated.
 
   FuncSq f(A, b);
   ConstrLpBallSolver linearConstrSolver(1);
@@ -115,8 +112,7 @@
   mat B1 = eye(3, 3);
   mat B2 = 0.1 * randn(3, k);
   mat A = join_horiz(B1, B2); // The dictionary is input as columns of A.
-  vec b;
-  b << 1 << 1 << 0; // Vector to be sparsely approximated.
+  vec b = { 1.0, 1.0, 0.0 }; // Vector to be sparsely approximated.
 
   FuncSq f(A, b);
   ConstrLpBallSolver linearConstrSolver(1);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ensmallen-2.19.0/tests/line_search_test.cpp 
new/ensmallen-2.19.1/tests/line_search_test.cpp
--- old/ensmallen-2.19.0/tests/line_search_test.cpp     2022-04-09 
03:10:49.000000000 +0200
+++ new/ensmallen-2.19.1/tests/line_search_test.cpp     2023-01-28 
20:25:03.000000000 +0100
@@ -23,8 +23,7 @@
 TEST_CASE("FuncFWTest", "[LineSearchTest]")
 {
   mat x1 = zeros<mat>(3, 1);
-  mat x2;
-  x2 << 0.2 << 0.4 << 0.6;
+  mat x2 = { 0.2, 0.4, 0.6 };
   x2 = x2.t();
 
   TestFuncFW<> f;
@@ -44,8 +43,7 @@
 TEST_CASE("FuncFWFMatTest", "[LineSearchTest]")
 {
   fmat x1 = zeros<fmat>(3, 1);
-  fmat x2;
-  x2 << 0.2 << 0.4 << 0.6;
+  fmat x2 = { 0.2, 0.4, 0.6 };
   x2 = x2.t();
 
   TestFuncFW<arma::fmat> f;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ensmallen-2.19.0/tests/sdp_primal_dual_test.cpp 
new/ensmallen-2.19.1/tests/sdp_primal_dual_test.cpp
--- old/ensmallen-2.19.0/tests/sdp_primal_dual_test.cpp 2022-04-09 
03:10:49.000000000 +0200
+++ new/ensmallen-2.19.1/tests/sdp_primal_dual_test.cpp 2023-01-28 
20:25:03.000000000 +0100
@@ -10,7 +10,10 @@
  * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 
-#define ARMA_DONT_PRINT_ERRORS
+#if (ARMA_VERSION_MAJOR < 11)
+  #define ARMA_DONT_PRINT_ERRORS
+#endif
+
 #include <ensmallen.hpp>
 #include "catch.hpp"
 

Reply via email to