Skip to content

Commit 3c8ac43

Browse files
compat with LinearOperators 2.2.2
1 parent c2973d6 commit 3c8ac43

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Requires = "ae029012-a4dd-5104-9daa-d747884805df"
1212
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
1313

1414
[compat]
15-
LinearOperators = "2"
15+
LinearOperators = "2.2.2"
1616
NLPModels = "0.17"
1717
NLPModelsModifiers = "0.4"
1818
Requires = "0.3, 0.4, 0.5, 1.0"

src/qpmodel.jl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,6 @@ function NLPModels.objgrad!(qp::AbstractQuadraticModel, x::AbstractVector, g::Ab
240240
NLPModels.increment!(qp, :neval_grad)
241241
if typeof(qp.data) <: QPDataCOO
242242
coo_sym_prod!(qp.data.Hrows, qp.data.Hcols, qp.data.Hvals, x, g)
243-
elseif typeof(qp.data.H) <: AbstractLinearOperator
244-
mul!(g, qp.data.H, x)
245243
else
246244
mul!(g, Symmetric(qp.data.H, :L), x)
247245
end
@@ -255,8 +253,6 @@ function NLPModels.obj(qp::AbstractQuadraticModel{T, S}, x::AbstractVector) wher
255253
Hx = fill!(S(undef, qp.meta.nvar), zero(T))
256254
if typeof(qp.data) <: QPDataCOO
257255
coo_sym_prod!(qp.data.Hrows, qp.data.Hcols, qp.data.Hvals, x, Hx)
258-
elseif typeof(qp.data.H) <: AbstractLinearOperator
259-
mul!(Hx, qp.data.H, x)
260256
else
261257
mul!(Hx, Symmetric(qp.data.H, :L), x)
262258
end
@@ -267,8 +263,6 @@ function NLPModels.grad!(qp::AbstractQuadraticModel, x::AbstractVector, g::Abstr
267263
NLPModels.increment!(qp, :neval_grad)
268264
if typeof(qp.data) <: QPDataCOO
269265
coo_sym_prod!(qp.data.Hrows, qp.data.Hcols, qp.data.Hvals, x, g)
270-
elseif typeof(qp.data.H) <: AbstractLinearOperator
271-
mul!(g, qp.data.H, x)
272266
else
273267
mul!(g, Symmetric(qp.data.H, :L), x)
274268
end
@@ -380,8 +374,6 @@ function NLPModels.hprod!(
380374
NLPModels.increment!(qp, :neval_hprod)
381375
if typeof(qp.data) <: QPDataCOO
382376
coo_sym_prod!(qp.data.Hrows, qp.data.Hcols, qp.data.Hvals, v, Hv)
383-
elseif typeof(qp.data.H) <: AbstractLinearOperator
384-
mul!(Hv, qp.data.H, v)
385377
else
386378
mul!(Hv, Symmetric(qp.data.H, :L), v)
387379
end

0 commit comments

Comments
 (0)