Skip to content

Initializers #13

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

Closed
wants to merge 3 commits into from
Closed

Conversation

karllessard
Copy link
Collaborator

@karllessard karllessard commented Dec 5, 2022

Initializes a just-allocated array using a new API that focuses on a stateful builder approach rather than the positional endpoints setXXX(value, coords) exposed by the NdArray itself.

Not only it simplifies the task of initializing an array with explicit values but also it allows us to allocate an empty sparse array and then let the user initialize its data (right now, the user have to allocate and initialize the data of the indices and values subarrays first before being able to allocate a sparse array).

@karllessard karllessard requested a review from Craigacp December 5, 2022 04:05
@karllessard karllessard mentioned this pull request Dec 5, 2022
@karllessard
Copy link
Collaborator Author

karllessard commented Dec 5, 2022

Again, now just the implementation for basic object arrays and double arrays is present in the PR. Once we are happy with them, I'll add more tests and support for all other type of arrays.

@karllessard karllessard closed this Dec 5, 2022
@karllessard
Copy link
Collaborator Author

Since it is not ready to be merged yet (missing types, etc.), this should be reopened as a draft, sorry for the noise

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