-
Notifications
You must be signed in to change notification settings - Fork 638
Derivative functionals #1545
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
Open
loliverhennigh
wants to merge
13
commits into
NVIDIA:main
Choose a base branch
from
loliverhennigh:pr4-derivative-functionals
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Derivative functionals #1545
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
2b872f5
Add derivative functionals and focused derivative tests
loliverhennigh 7ed1ea5
Add spectral and meshless finite-difference derivative functionals
loliverhennigh 07985e5
Remove public meshless FD stencil functional
loliverhennigh 7c0a253
Add full license headers to derivative package init files
loliverhennigh fe40394
Refresh derivative docs visuals and remove meshless workflow text
loliverhennigh b5374fc
Adjust Green-Gauss docs image to remove white arrow artifacts
loliverhennigh f35fe22
Remove arrows from Green-Gauss derivative docs image
loliverhennigh 17c3371
Remove meshless FD image from derivative docs
loliverhennigh 70714c6
Refactor derivative functionals and remove optional warp guards
loliverhennigh d4cd6ed
Add second-derivative mode for grid gradient functionals
loliverhennigh e999fd5
Update functional docs ownership and meshless FD doc wording
loliverhennigh 161e17b
Refactor derivative functionals and split Warp implementations
loliverhennigh be88499
Refactor derivative warp launchers and normalize test coverage
loliverhennigh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| Derivative Functionals | ||
| ====================== | ||
|
|
||
| .. autofunction:: physicsnemo.nn.functional.uniform_grid_gradient | ||
|
|
||
| .. figure:: /img/nn/functional/derivatives/uniform_grid_gradient.png | ||
| :alt: Uniform grid gradient example | ||
| :width: 100% | ||
|
|
||
| .. autofunction:: physicsnemo.nn.functional.rectilinear_grid_gradient | ||
|
|
||
| .. figure:: /img/nn/functional/derivatives/rectilinear_grid_gradient.png | ||
| :alt: Rectilinear grid gradient example | ||
| :width: 100% | ||
|
|
||
| .. autofunction:: physicsnemo.nn.functional.mesh_lsq_gradient | ||
|
|
||
| .. figure:: /img/nn/functional/derivatives/mesh_lsq_gradient.png | ||
| :alt: Mesh LSQ gradient example | ||
| :width: 100% | ||
|
|
||
| .. autofunction:: physicsnemo.nn.functional.mesh_green_gauss_gradient | ||
|
|
||
| .. figure:: /img/nn/functional/derivatives/mesh_green_gauss_gradient.png | ||
| :alt: Mesh Green-Gauss gradient example | ||
| :width: 100% | ||
|
|
||
| .. autofunction:: physicsnemo.nn.functional.spectral_grid_gradient | ||
|
|
||
| .. figure:: /img/nn/functional/derivatives/spectral_grid_gradient.png | ||
| :alt: Spectral grid gradient example | ||
| :width: 100% | ||
|
|
||
| .. autofunction:: physicsnemo.nn.functional.meshless_fd_derivatives |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| # SPDX-FileCopyrightText: Copyright (c) 2023 - 2026 NVIDIA CORPORATION & AFFILIATES. | ||
| # SPDX-FileCopyrightText: All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| from .mesh_green_gauss_gradient import MeshGreenGaussGradient, mesh_green_gauss_gradient | ||
| from .mesh_lsq_gradient import MeshLSQGradient, mesh_lsq_gradient | ||
| from .meshless_finite_difference import ( | ||
| MeshlessFDDerivatives, | ||
| meshless_fd_derivatives, | ||
| ) | ||
| from .rectilinear_grid_gradient import ( | ||
| RectilinearGridGradient, | ||
| rectilinear_grid_gradient, | ||
| ) | ||
| from .spectral_grid_gradient import SpectralGridGradient, spectral_grid_gradient | ||
| from .uniform_grid_gradient import UniformGridGradient, uniform_grid_gradient | ||
|
|
||
| __all__ = [ | ||
| "MeshGreenGaussGradient", | ||
| "MeshlessFDDerivatives", | ||
| "MeshLSQGradient", | ||
| "RectilinearGridGradient", | ||
| "SpectralGridGradient", | ||
| "UniformGridGradient", | ||
| "mesh_green_gauss_gradient", | ||
| "meshless_fd_derivatives", | ||
| "mesh_lsq_gradient", | ||
| "rectilinear_grid_gradient", | ||
| "spectral_grid_gradient", | ||
| "uniform_grid_gradient", | ||
| ] |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also add a CHANGELOG entry for this PR :)