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

Move primal::NumericArray to core #1500

Merged
merged 7 commits into from
Feb 7, 2025

Conversation

gunney1
Copy link
Contributor

@gunney1 gunney1 commented Feb 4, 2025

Move primal::NumericalArray class to core

The motivation for this:

  1. NumericalArray doesn't depend on primal where it had lived.
  2. It has general utilities like supporting multidimensional index arithmetic.

This PR implements issue #1488.

@gunney1 gunney1 self-assigned this Feb 4, 2025
@gunney1 gunney1 added the Core Issues related to Axom's 'core' component label Feb 4, 2025
Copy link
Member

@kennyweiss kennyweiss left a comment

Choose a reason for hiding this comment

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

Thanks @gunney1 -- seems like a reasonable change.

NumericArray is more of a (linear) algebra support class and does not include any geometry, although it contains the core functionality for primal::Point and primal::Vector.

Required changes:

  • It looks like the core_numeric_array unit tests are commented out. I'd be happy to approve once those are added back in.
  • I agree w/ @BradWhitlock that NumericArray should be in the same directory as the other array classes

Clarification:

Also, I'm a bit confused about this line in the PR description:

It has general utilities like supporting multidimensional index arithmetic.

since I don't think it directly contains any functionality for multidimensional indexing. Am I missing something, or did you mean that it can be used to help w/ multidimensional indexing? If so, do we have any existing examples?

src/axom/core/utilities/NumericArray.hpp Outdated Show resolved Hide resolved
src/axom/core/utilities/NumericArray.hpp Outdated Show resolved Hide resolved
src/axom/core/utilities/NumericArray.hpp Outdated Show resolved Hide resolved
src/axom/core/tests/core_numeric_array.cpp Outdated Show resolved Hide resolved
src/axom/core/CMakeLists.txt Outdated Show resolved Hide resolved
src/axom/core/tests/CMakeLists.txt Outdated Show resolved Hide resolved
Copy link
Member

@kennyweiss kennyweiss left a comment

Choose a reason for hiding this comment

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

Thanks @gunney1 !

@gunney1 gunney1 merged commit 4f5287b into develop Feb 7, 2025
13 checks passed
@gunney1 gunney1 deleted the feature/gunney/move-numeric-array-to-core branch February 7, 2025 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Issues related to Axom's 'core' component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants