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

Extend DiffusionGrid interface for full gradient information #257

Merged
merged 8 commits into from
Mar 25, 2022

Conversation

TobiasDuswald
Copy link
Contributor

@TobiasDuswald TobiasDuswald commented Mar 24, 2022

This PR makes the DiffusionGrid::GetGradient more flexible. It allows retrieving the absolute value of the gradient such that modelers can use the full information of the gradient, e.g. define behaviors that are only executed if the gradient is stronger than a certain threshold.

Furthermore, the PR introduces a UnitTest to verify that the gradients are computed correctly by comparing an analytic and numeric solution.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

87.5% 87.5% Coverage
0.0% 0.0% Duplication

@TobiasDuswald TobiasDuswald merged commit df57f12 into master Mar 25, 2022
@TobiasDuswald TobiasDuswald deleted the dg-api branch March 25, 2022 13:52
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