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

Revert to passing matrices to/from C++ via uintptr_t's. #35

Merged
merged 2 commits into from
Dec 13, 2024
Merged

Conversation

LTLA
Copy link
Member

@LTLA LTLA commented Dec 13, 2024

This avoids any reliance on pybind11 in downstream packages; as long as they can take a uintptr_t, they can use mattress. We also introduce a BoundMatrix class inside a mattress.h header that can be used by downstreams to get the casting correct. GC protection is now fully handled in C++ via the BoundMatrix::original field.

LTLA added 2 commits December 13, 2024 10:57
This avoids any reliance on pybind11 in downstream packages; as long as
they can take a uintptr_t, they can use mattress. We also introduce a
BoundMatrix class inside a mattress.h header that can be used by
downstreams to get the casting correct. GC protection is now fully
handled in C++ via the BoundMatrix::original field.
@LTLA LTLA merged commit 98ea078 into master Dec 13, 2024
7 checks passed
@LTLA LTLA deleted the addressify branch December 13, 2024 19:19
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