Skip to content

Create exponential filter function for ZernikeB2#7195

Merged
nilsdeppe merged 1 commit into
sxs-collaboration:developfrom
michaeldmurphy1:b2_filtering
May 11, 2026
Merged

Create exponential filter function for ZernikeB2#7195
nilsdeppe merged 1 commit into
sxs-collaboration:developfrom
michaeldmurphy1:b2_filtering

Conversation

@michaeldmurphy1
Copy link
Copy Markdown
Contributor

Proposed changes

Functions represented with ZernikeB2 have a multidimensional spectral space, so the filtering is more involved...

I'm open to reworking how the functions are called (not sure how it will work in practice, but this worked for my cases).
Also is this the right file name / location?

Upgrade instructions

Code review checklist

  • The code is documented and the documentation renders correctly. Run
    make doc to generate the documentation locally into BUILD_DIR/docs/html.
    Then open index.html.
  • The code follows the stylistic and code quality guidelines listed in the
    code review guide.
  • The PR lists upgrade instructions and is labeled bugfix or
    new feature if appropriate.
  • If a coding agent is used, have one of
    "Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com",
    "Co-Authored-by: Codex noreply@openai.com", or
    "Co-Authored-By: GitHub Copilot CLI noreply@microsoft.com"
    as the last line of the commit, depending on the agent.

Further comments


namespace Spectral::filtering {
namespace detail {
void apply_matrix_in_first_dim(double* result, const double* const input,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is a copy-paste from PartialDerivatives.cpp. I am not aware of a similar wrapper in DataStructures or Utilities

"[NumericalAlgorithms][Spectral][Unit]") {
// We test the filtering by verifying known outcomes (i.e. constants
// unaffected, highest modes completely zeroed) as well as testing
// individaul modes are scaled as expected
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

individual

Copy link
Copy Markdown
Member

@nilsdeppe nilsdeppe left a comment

Choose a reason for hiding this comment

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

A few minor things. Please squash and rebase immediately

Comment thread src/NumericalAlgorithms/Spectral/FilteringB2.hpp Outdated
Comment thread src/NumericalAlgorithms/Spectral/FilteringB2.hpp Outdated
Comment thread src/NumericalAlgorithms/Spectral/FilteringB2.tpp
Comment thread src/NumericalAlgorithms/Spectral/FilteringB2.tpp Outdated
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@nilsdeppe nilsdeppe merged commit a17fab2 into sxs-collaboration:develop May 11, 2026
24 checks passed
@michaeldmurphy1 michaeldmurphy1 deleted the b2_filtering branch May 12, 2026 12:36
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.

2 participants