Skip to content

Implement kernel rewriting - #279

Draft
alexfikl wants to merge 10 commits into
inducer:mainfrom
alexfikl:kernel-rewrite
Draft

alexfikl wants to merge 10 commits into
inducer:mainfrom
alexfikl:kernel-rewrite

Conversation

@alexfikl

@alexfikl alexfikl commented May 8, 2026 •

Copy link
Copy Markdown
Collaborator

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.
  • Hook into documentation.

cc @isuruf

@alexfikl
alexfikl force-pushed the kernel-rewrite branch 2 times, most recently from c2abca1 to a9f5083 Compare September 4, 2026 08:04
@alexfikl
alexfikl force-pushed the kernel-rewrite branch 3 times, most recently from 8e21ddf to 6065fb6 Compare September 12, 2026 16:31
Comment thread sumpy.html Outdated

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

👋

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