NLPModels.jl icon indicating copy to clipboard operation
NLPModels.jl copied to clipboard

Avoid views in jtprod!

Open tmigot opened this issue 1 year ago • 3 comments

This would solve https://github.com/JuliaSmoothOptimizers/NLPModelsModifiers.jl/issues/77

using NLPModels, NLPModelsModifiers, NLPModelsTest
nlp = NLSLC()
nls = FeasibilityFormNLS(nlp)
x = get_x0(nls)
y = get_y0(nls)
Jtv = similar(x)
jtprod!(nls, x, y, Jtv)
@allocated jtprod!(nls, x, y, Jtv) # 0

Connected to https://github.com/JuliaSmoothOptimizers/NLPModels.jl/issues/384 .

tmigot avatar Feb 26 '24 23:02 tmigot

Codecov Report

Attention: Patch coverage is 80.00000% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 99.25%. Comparing base (361ccb7) to head (53d6aba).

Files Patch % Lines
src/nlp/api.jl 80.00% 1 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #453      +/-   ##
==========================================
- Coverage   99.50%   99.25%   -0.25%     
==========================================
  Files          13       13              
  Lines         803      807       +4     
==========================================
+ Hits          799      801       +2     
- Misses          4        6       +2     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Feb 26 '24 23:02 codecov[bot]

Package name latest stable
ADNLPModels.jl
AmplNLReader.jl
CUTEst.jl
CaNNOLeS.jl
DCISolver.jl
FletcherPenaltySolver.jl
JSOSolvers.jl
LLSModels.jl
NLPModelsIpopt.jl
NLPModelsJuMP.jl
NLPModelsModifiers.jl
NLPModelsTest.jl
PDENLPModels.jl
Percival.jl
QuadraticModels.jl
SolverBenchmark.jl
SolverCore.jl
SolverTest.jl
SolverTools.jl

github-actions[bot] avatar Feb 26 '24 23:02 github-actions[bot]

The breakage fails because of the new releases of NLPModelsModifiers and to be NLPModelsTest ; I will re-run this when they arrive.

tmigot avatar Feb 27 '24 00:02 tmigot