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

[TMath] Add Gradient and Laplacian methods for arrays #15100

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pitkajuh
Copy link
Contributor

@pitkajuh pitkajuh commented Apr 1, 2024

This Pull request:

Changes or fixes:

Dear All. This pull request adds gradient and Laplacian methods for arrays. These can be used to calculate one-dimensional first and second order derivatives. Should there also be methods for calculating higher order derivatives and dimensions?

I am open to any feedback regarding the code.

Checklist:

  • tested changes locally
  • updated the docs (if necessary)

This PR fixes #14304

@phsft-bot
Copy link
Collaborator

Can one of the admins verify this patch?

Copy link
Collaborator

@ferdymercury ferdymercury left a comment

Choose a reason for hiding this comment

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

See my suggestions for Gradient. Consider applying the same kind of changes to Laplacian. Thanks!

math/mathcore/inc/TMath.h Show resolved Hide resolved
math/mathcore/inc/TMath.h Outdated Show resolved Hide resolved
Copy link
Collaborator

@ferdymercury ferdymercury left a comment

Choose a reason for hiding this comment

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

Sorry, I edited now, crash should be gone

math/mathcore/inc/TMath.h Outdated Show resolved Hide resolved
math/mathcore/inc/TMath.h Outdated Show resolved Hide resolved
Copy link
Contributor Author

@pitkajuh pitkajuh left a comment

Choose a reason for hiding this comment

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

Changes ok.

@ferdymercury
Copy link
Collaborator

Changes ok.

Thanks! From my side, the only thing left is improving the documentation of Laplacian, try copy-pasting from Gradient and adapting.

@pitkajuh pitkajuh force-pushed the fix-14304 branch 2 times, most recently from c4a28aa to 689204e Compare April 14, 2024 13:17
@pitkajuh
Copy link
Contributor Author

Changes ok.

Thanks! From my side, the only thing left is improving the documentation of Laplacian, try copy-pasting from Gradient and adapting.

Thank you for providing suggestions and taking your time to review the code.

@pitkajuh pitkajuh marked this pull request as ready for review April 14, 2024 13:20
@pitkajuh pitkajuh requested a review from lmoneta as a code owner April 14, 2024 13:20
Copy link
Collaborator

@ferdymercury ferdymercury left a comment

Choose a reason for hiding this comment

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

You are welcome. Min N must be changed for Laplacian. Thanks!

@pitkajuh
Copy link
Contributor Author

You are welcome. Min N must be changed for Laplacian. Thanks!

Done.

Copy link

github-actions bot commented Apr 14, 2024

Test Results

    11 files      11 suites   2d 5h 31m 22s ⏱️
 2 624 tests  2 624 ✅ 0 💤 0 ❌
27 010 runs  27 010 ✅ 0 💤 0 ❌

Results for commit 047635f.

♻️ This comment has been updated with latest results.

math/mathcore/inc/TMath.h Outdated Show resolved Hide resolved
math/mathcore/inc/TMath.h Outdated Show resolved Hide resolved
math/mathcore/inc/TMath.h Outdated Show resolved Hide resolved
math/mathcore/inc/TMath.h Outdated Show resolved Hide resolved
math/mathcore/test/testTMath.cxx Outdated Show resolved Hide resolved
math/mathcore/test/testTMath.cxx Show resolved Hide resolved
math/mathcore/inc/TMath.h Show resolved Hide resolved
math/mathcore/inc/TMath.h Show resolved Hide resolved
@ferdymercury
Copy link
Collaborator

Copy link
Collaborator

@ferdymercury ferdymercury left a comment

Choose a reason for hiding this comment

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

Why the change in roofitcore and bindings?

Also go to "Files changed" tab and revise the comments on testTMath.cxx, they are marked as resolved by mistake.

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[math] Finite difference methods for Gradient
4 participants