Skip to content

Commit 29fed5a

Browse files
authored
remove unbound type parameter (#147)
Unbound type parameters often cause performance issues and run time dispatch. Issue found using JuliaLang/julia#46608
1 parent c71b7a3 commit 29fed5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/objective_types/incomplete.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ end
9393
const InPlaceFGH = InplaceObjective{<:Nothing,<:Nothing,TH,<:Nothing,<:Nothing} where {TH}
9494
const InPlaceFG_HV = InplaceObjective{<:Nothing,TFG,<:Nothing,THv,<:Nothing} where {TFG,THv}
9595
const InPlaceFGHV = InplaceObjective{<:Nothing,<:Nothing,<:Nothing,<:Nothing,TFGHv} where {TFGHv}
96-
function TwiceDifferentiable(t::InPlaceFGH, x::AbstractArray, F::Real = real(zero(eltype(x))), G::AbstractArray = alloc_DF(x, F), H = alloc_H(x, F)) where {TH}
96+
function TwiceDifferentiable(t::InPlaceFGH, x::AbstractArray, F::Real = real(zero(eltype(x))), G::AbstractArray = alloc_DF(x, F), H = alloc_H(x, F))
9797
f = x -> t.fgh(F, nothing, nothing, x)
9898
df = (G, x) -> t.fgh(nothing, G, nothing, x)
9999
fdf = (G, x) -> t.fgh(F, G, nothing, x)

0 commit comments

Comments
 (0)