@@ -113,7 +113,7 @@ function evaluate!(
113113 Σ_chol = cholesky! (Symmetric (Σ⁻¹); check = false )
114114 if ! isposdef (Σ_chol)
115115 # @warn "∑⁻¹ is not positive definite"
116- isnothing (objective) || (objective = non_posdef_return (par))
116+ isnothing (objective) || (objective = non_posdef_objective (par))
117117 isnothing (gradient) || fill! (gradient, 1 )
118118 isnothing (hessian) || copyto! (hessian, I)
119119 return objective
@@ -180,7 +180,7 @@ function evaluate!(objective, gradient, hessian, ml::SemML, par)
180180 Σ_chol = cholesky! (Symmetric (Σ⁻¹); check = false )
181181 if ! isposdef (Σ_chol)
182182 # @warn "Σ⁻¹ is not positive definite"
183- isnothing (objective) || (objective = non_posdef_return (par))
183+ isnothing (objective) || (objective = non_posdef_objective (par))
184184 isnothing (gradient) || fill! (gradient, 1 )
185185 isnothing (hessian) || copyto! (hessian, I)
186186 return objective
@@ -243,18 +243,6 @@ function evaluate!(objective, gradient, hessian, ml::SemML, par)
243243 return objective
244244end
245245
246- # ###########################################################################################
247- # ## additional functions
248- # ###########################################################################################
249-
250- function non_posdef_return (par)
251- if eltype (par) <: AbstractFloat
252- return floatmax (eltype (par))
253- else
254- return typemax (eltype (par))
255- end
256- end
257-
258246# ###########################################################################################
259247# ## recommended methods
260248# ###########################################################################################
0 commit comments