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

Change nla() to reduce allocations #120

Open
MartinuzziFrancesco opened this issue May 4, 2022 · 0 comments
Open

Change nla() to reduce allocations #120

MartinuzziFrancesco opened this issue May 4, 2022 · 0 comments
Labels
good first issue Good for newcomers

Comments

@MartinuzziFrancesco
Copy link
Collaborator

At the moment the nla() function takes an array as input and returns the modified array as output, but this creates a lot of allocations inside for loops. The new function call nla!() should take in the array to be modified and a preallocated array to store the modified array in. This should remove unneeded allocations and speed up computations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant