From 8f68ef1324ab56d950b80eea5b2e39ef06b5db12 Mon Sep 17 00:00:00 2001 From: Avik Pal Date: Sun, 15 Oct 2023 14:22:15 -0400 Subject: [PATCH] Run autoselect --- src/gaussnewton.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gaussnewton.jl b/src/gaussnewton.jl index 6c03b6c2e..f8c0c7fbe 100644 --- a/src/gaussnewton.jl +++ b/src/gaussnewton.jl @@ -41,8 +41,8 @@ for large-scale and numerically-difficult nonlinear least squares problems. precs end -function GaussNewton(; concrete_jac = nothing, linsolve = NormalCholeskyFactorization(), - precs = DEFAULT_PRECS, adkwargs...) +function GaussNewton(; concrete_jac = nothing, linsolve = nothing, precs = DEFAULT_PRECS, + adkwargs...) ad = default_adargs_to_adtype(; adkwargs...) return GaussNewton{_unwrap_val(concrete_jac)}(ad, linsolve, precs) end