Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Armadillo 14.2.0 deprecation changes to (index) .min() and .max() #409

Merged
merged 3 commits into from
Nov 20, 2024

Conversation

eddelbuettel
Copy link
Contributor

Building mlpack under R using (Rcpp)Armadillo 14.2.0-1 leads to deprecation warnings which e.g. CRAN nags about. The warnings start with the index minimum call in atoms.hpp; the change addresses and ensmallen (or rather RcppEnsmallen) still tests fine with it. The second change is only other case I found with a quick search, there may be more.

This is an Armadillo 14.2.0 change that creates a fair amount of compilation
noise for mlpack right now.

There are likely more changes to be made but this will check the mechanics.
Copy link
Member

@rcurtin rcurtin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks! Want to make a note in HISTORY.md? I can also do that during merge if you like.

@eddelbuettel
Copy link
Contributor Author

eddelbuettel commented Nov 19, 2024

How is this? Am I hitting the desired format? Maybe should mention .index_min() and .index_max().

modified   HISTORY.md
@@ -6,6 +6,9 @@
  * Bump minimum Armadillo version to 10.8
    ([#404](https://github.com/mlpack/ensmallen/pull/404)).
 
+ * Accommodate Armadillo 14.2.0 deprecations
+   ([#409](https://github.com/mlpack/ensmallen/pull/409).
+
 ### ensmallen 2.21.1: "Bent Antenna"
 ###### 2024-02-15
  * Fix numerical precision issues for small-gradient L-BFGS scaling factor

(Now done with slightly different text in b19f75e.)

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Second approval provided automatically after 24 hours. 👍

@eddelbuettel eddelbuettel merged commit 7bff766 into master Nov 20, 2024
1 check passed
@eddelbuettel eddelbuettel deleted the feature/arma_14.2.0_change branch November 20, 2024 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants