Skip to content

Implement kernel rewriting#279

Draft
alexfikl wants to merge 3 commits intoinducer:mainfrom
alexfikl:kernel-rewrite
Draft

Implement kernel rewriting#279
alexfikl wants to merge 3 commits intoinducer:mainfrom
alexfikl:kernel-rewrite

Conversation

@alexfikl
Copy link
Copy Markdown
Collaborator

@alexfikl alexfikl commented May 8, 2026

This implements rewriting a target kernel (e.g. Stokeslet) in terms of a base kernel (e.g. biharmonic) as a linear constant-coefficient combination of derivatives.

Currently, it just hoists get_deriv_relation_kernel from inducer/pytential#162 with some minimal changes:

  • Clean up the retry logic for the LU factorization.
  • Add a loop on the max order of derivatives.

TODO:

  • Make sure the LU based decomposition works the same as before.
  • Add a bunch of tests for it (based on the tests in pytential).
  • Implement a hopefully better (but likely slower?) purely-symbolic version.

cc @isuruf

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