Skip to content

Commit 4056565

Browse files
committed
docs: Move docstrings from ext to public
1 parent 85a3f80 commit 4056565

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

lib/NonlinearSolveBase/ext/NonlinearSolveBaseForwardDiffExt.jl

-6
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,6 @@ NonlinearSolveBase.nodual_value(x) = x
191191
NonlinearSolveBase.nodual_value(x::Dual) = ForwardDiff.value(x)
192192
NonlinearSolveBase.nodual_value(x::AbstractArray{<:Dual}) = map(ForwardDiff.value, x)
193193

194-
"""
195-
pickchunksize(x) = pickchunksize(length(x))
196-
pickchunksize(x::Int)
197-
198-
Determine the chunk size for ForwardDiff and PolyesterForwardDiff based on the input length.
199-
"""
200194
@inline NonlinearSolveBase.pickchunksize(x) = pickchunksize(length(x))
201195
@inline NonlinearSolveBase.pickchunksize(x::Int) = ForwardDiff.pickchunksize(x)
202196

lib/NonlinearSolveBase/src/public.jl

+7
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ function nonlinearsolve_∂f_∂p end
1212
function nonlinearsolve_∂f_∂u end
1313
function nlls_generate_vjp_function end
1414
function nodual_value end
15+
16+
"""
17+
pickchunksize(x) = pickchunksize(length(x))
18+
pickchunksize(x::Int)
19+
20+
Determine the chunk size for ForwardDiff and PolyesterForwardDiff based on the input length.
21+
"""
1522
function pickchunksize end
1623

1724
# Nonlinear Solve Termination Conditions

0 commit comments

Comments
 (0)