Skip to content

Commit 50a519d

Browse files
committed
Apply suggestions from code review
1 parent abf0f69 commit 50a519d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/linesearch/line_model.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ mutable struct LineModel{T, S} <: AbstractNLPModel{T, S}
1616
meta::NLPModelMeta{T, S}
1717
counters::Counters
1818
nlp::AbstractNLPModel{T, S}
19-
x::AbstractVector
20-
d::AbstractVector
19+
x::S
20+
d::S
2121
end
2222

23-
function LineModel(nlp::AbstractNLPModel{T, S}, x::AbstractVector, d::AbstractVector) where {T, S}
23+
function LineModel(nlp::AbstractNLPModel{T, S}, x::S, d::S) where {T, S}
2424
meta = NLPModelMeta{T, S}(1, x0 = zeros(T, 1), name = "LineModel to $(nlp.meta.name))")
2525
return LineModel(meta, Counters(), nlp, x, d)
2626
end

0 commit comments

Comments
 (0)