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 InplaceLogpdf wrapper type #12

Merged
merged 6 commits into from
Jun 10, 2024
Merged

Add InplaceLogpdf wrapper type #12

merged 6 commits into from
Jun 10, 2024

Conversation

bvdmitri
Copy link
Member

This PR introduces a new InplaceLogpdf wrapper type. This wrapper is designed to enhance the efficiency of the logpdf! function, particularly during manifold projection by leveraging dispatch.

@bvdmitri bvdmitri requested a review from wouterwln June 10, 2024 09:03
@wouterwln
Copy link
Member

Maybe add a test that indeed the function is in place and doesn't allocate?

@bvdmitri
Copy link
Member Author

bvdmitri commented Jun 10, 2024

There is no guarantee it does not allocate, the only promise is that it stores the result in the out. I added a small extra test though.

@bvdmitri bvdmitri merged commit 540854b into main Jun 10, 2024
2 checks passed
@wouterwln wouterwln deleted the dev-inplace-logpdf branch October 9, 2024 08:38
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