Skip to content

Commit

Permalink
Loosen Hessian type annotation
Browse files Browse the repository at this point in the history
Tadaa, sparse hessian implemented ;)
  • Loading branch information
pkofod committed Oct 11, 2017
1 parent 514e083 commit d15edde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/objective_types.jl
Expand Up @@ -61,14 +61,14 @@ function OnceDifferentiable(f, g!, x_seed::AbstractArray)
end

# Used for objectives and solvers where the gradient and Hessian is available/exists
mutable struct TwiceDifferentiable{T<:Real,Tgrad,A<:AbstractArray{T}} <: AbstractObjective
mutable struct TwiceDifferentiable{T<:Real,Tgrad,TH,A<:AbstractArray{T}} <: AbstractObjective
f
g!
fg!
h!
f_x::T
g::Tgrad
H::Matrix{T}
H::TH
last_x_f::A
last_x_g::A
last_x_h::A
Expand Down

0 comments on commit d15edde

Please sign in to comment.