Skip to content

Commit

Permalink
add missing eltype definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy committed Oct 24, 2024
1 parent 875b2ca commit 92c46a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@ Because `BackTracking` doesn't use derivatives except at `α=0`, only the initia
Other methods may store all three.
"""
LineSearchCache{T}() where T = LineSearchCache{T}(T[], T[], T[])

Base.eltype(::Type{LineSearchCache{T}}) where T = T
Base.eltype(cache::LineSearchCache) = eltype(typeof(cache))

0 comments on commit 92c46a6

Please sign in to comment.