-
Notifications
You must be signed in to change notification settings - Fork 2
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 interface to build npy_array_list objects from C #30
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like npy_array_alloc()
take a deep copy of an array. Maybe it is better to name it npy_array_deepcopy()
?
In my work I usually have huge arrays - there should be some check on the on the allocated memory.
That makes a lot of sense. Changed it :) |
I see nothing wrong! Merging! |
Thanks a lot Lennart! I think actually you are touching into the problem in #14. The user can have arrays where they do not "own" the items of the array_list. If you can think of somtheing better/simpler, I would love to hear ideas. -Øystein |
How about a public and a private data pointer, where the private one is left as NULL in case the array doesn't own the data? |
Hmmmm... Well... Sounds a bit like adding complexity. Then we should also
have a function/macro that returns the right pointer when requested.
…On Fri, 20 Sept 2024, 21:37 Lennart Klebl, ***@***.***> wrote:
How about a public and a private data pointer, where the private one is
left as NULL in case the array doesn't own the data?
—
Reply to this email directly, view it on GitHub
<#30 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABFBMLJWDCJ2UFA2ENTCLVTZXR2QHAVCNFSM6AAAAABOR3KV6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRUGUYDANJUG4>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
No description provided.