@tmigot
I just remarked that jtprod! allocates if nlin > 0 and nnln > 0.
I think we should allocate a buffer of size nvar in NLPModelMeta to store an additional Jtv (linear or nonlinear) and then do the sum.
-> https://github.com/JuliaSmoothOptimizers/NLPModels.jl/blob/main/src/nlp/api.jl#L503-L523
cc @frapac
@tmigot
I just remarked that
jtprod!allocates ifnlin > 0andnnln > 0.I think we should allocate a buffer of size
nvarinNLPModelMetato store an additionalJtv(linear or nonlinear) and then do the sum.-> https://github.com/JuliaSmoothOptimizers/NLPModels.jl/blob/main/src/nlp/api.jl#L503-L523
cc @frapac