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

Make new_around_pointer #505

Open
mohawk2 opened this issue Dec 4, 2024 · 0 comments
Open

Make new_around_pointer #505

mohawk2 opened this issue Dec 4, 2024 · 0 comments

Comments

@mohawk2
Copy link
Member

mohawk2 commented Dec 4, 2024

This is inspired by an upcoming paper by @chrisarg - the C API for PDL is quite heavyweight for quite an obviously useful thing.

Another thing that would help generally (including for callbacks) is being able to stack-allocate a struct pdl and then call an inline function (which would live in pdl.h) to initialise it; this could then also be used in pdl_pdlnew itself, so there'd be only one "source of truth" for initialisation. There should also be a slightly more powerful version that also initialises dims and datatype, and a further one that also initialises with data (usable by this).

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

No branches or pull requests

1 participant