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

jac_coord! memory allocation #270

Closed
sshin23 opened this issue Aug 29, 2021 · 2 comments
Closed

jac_coord! memory allocation #270

sshin23 opened this issue Aug 29, 2021 · 2 comments

Comments

@sshin23
Copy link
Contributor

sshin23 commented Aug 29, 2021

The current implementation of jac_coord! internally creates c = Vector{Float64}(undef, nlp.meta.ncon), which allocates memory. I was wondering if we can create a workspace array in CUTEstModel and reuse it whenever jac_coord! is called to avoid this allocation.

@dpo
Copy link
Member

dpo commented Aug 29, 2021

That sounds like a good idea provided it's documented properly.

@dpo
Copy link
Member

dpo commented Sep 1, 2021

fixed in #271

@dpo dpo closed this as completed Sep 1, 2021
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

2 participants