From eb9006cb3d020ef142a85c438c8c5ea04bb6347c Mon Sep 17 00:00:00 2001 From: Alexis Montoison <35051714+amontoison@users.noreply.github.com> Date: Sun, 4 Aug 2024 19:27:46 -0400 Subject: [PATCH] Update sparse_hessian.jl --- src/sparse_hessian.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sparse_hessian.jl b/src/sparse_hessian.jl index ee859c9a..c4db7eff 100644 --- a/src/sparse_hessian.jl +++ b/src/sparse_hessian.jl @@ -20,7 +20,7 @@ function SparseADHessian( f, ncon, c!; - x0::S = rand(nvar), + x0::AbstractVector = rand(nvar), coloring::AbstractColoringAlgorithm = GreedyColoringAlgorithm(), detector::AbstractSparsityDetector = TracerSparsityDetector(), kwargs..., @@ -124,7 +124,7 @@ function SparseReverseADHessian( f, ncon, c!; - x0::AbstractVector{T} = rand(nvar), + x0::AbstractVector = rand(nvar), coloring::AbstractColoringAlgorithm = GreedyColoringAlgorithm(), detector::AbstractSparsityDetector = TracerSparsityDetector(), kwargs...,