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

Add heat kernel #185

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open

Add heat kernel #185

wants to merge 23 commits into from

Conversation

isuruf
Copy link
Collaborator

@isuruf isuruf commented Aug 23, 2023

No description provided.

sumpy/kernel.py Outdated Show resolved Hide resolved
sumpy/kernel.py Outdated Show resolved Hide resolved
sumpy/kernel.py Outdated
@@ -933,6 +933,49 @@ def get_pde_as_diff_op(self):
return laplacian(w)


class GaussTransformKernel(ExpressionKernel):
Copy link
Owner

Choose a reason for hiding this comment

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

Add docstring? Hook into docs?

sumpy/kernel.py Outdated
class GaussTransformKernel(ExpressionKernel):
init_arg_names = ("dim",)

def __init__(self, dim, gauss_delta_name="delta"):
Copy link
Owner

Choose a reason for hiding this comment

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

Could you add a P2P test to ensure it satisfies the PDE? (Given that $\delta$ is a parameter, you'll probably need multiple rounds of P2P.)

@inducer inducer changed the title Add Gauss transform kernel Add heat kernel Aug 23, 2023
@isuruf
Copy link
Collaborator Author

isuruf commented Sep 12, 2023

@inducer, this is ready for a review. I will add more tests as a follow up PR.

Copy link
Owner

@inducer inducer left a comment

Choose a reason for hiding this comment

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

Thx! Two minor things, otherwise ready to go.

sumpy/kernel.py Outdated Show resolved Hide resolved
test/test_kernels.py Outdated Show resolved Hide resolved
sumpy/kernel.py Outdated Show resolved Hide resolved
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