Skip to content

Conversation

eddelbuettel
Copy link
Member

No description provided.

@eddelbuettel eddelbuettel requested a review from Copilot August 8, 2025 12:00
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the Armadillo C++ linear algebra library from version 14.6.1 to 14.6.2. The changes focus on refactoring sum operations by extracting common logic into a shared generic implementation.

  • Refactored sum operation implementations to use a new apply_generic function to reduce code duplication
  • Fixed OpenMP usage conditions by adding proper configuration checks
  • Updated version number to 14.6.2

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
inst/include/armadillo_bits/op_sum_meat.hpp Major refactoring to extract common sum logic into apply_generic function and simplify specialized implementations
inst/include/armadillo_bits/op_sum_bones.hpp Added declaration for new apply_generic function
inst/include/armadillo_bits/op_omit_meat.hpp Fixed OpenMP condition checks by adding arma_config::openmp guards
inst/include/armadillo_bits/arma_version.hpp Updated patch version from 1 to 2
ChangeLog Added entry documenting the update to Armadillo 14.6.2

}

op_sum::apply_generic(out, in);
Copy link
Preview

Copilot AI Aug 8, 2025

Choose a reason for hiding this comment

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

[nitpick] The early return statement at line 70 creates an asymmetric control flow. Consider restructuring this as an if-else block to make the logic clearer and maintain consistent structure with the refactored generic approach.

Copilot uses AI. Check for mistakes.

@eddelbuettel
Copy link
Member Author

Clean reverse-depends check, see RcppCore/rcpp-logs@7b2abea

@eddelbuettel eddelbuettel merged commit 789afff into master Aug 9, 2025
2 checks passed
@eddelbuettel eddelbuettel deleted the feature/14.6.2 branch August 9, 2025 11:50
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.

1 participant