Skip to content

Commit ee322af

Browse files
committed
Indent type/method headers in docstrings
1 parent e3a0de8 commit ee322af

File tree

4 files changed

+41
-41
lines changed

4 files changed

+41
-41
lines changed

src/alg_traits.jl

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
isautodifferentiable(alg::AbstractDEAlgorithm)
2+
isautodifferentiable(alg::AbstractDEAlgorithm)
33
44
Trait declaration for whether an algorithm is compatible with
55
direct automatic differentiation, i.e. can have algorithms like
@@ -11,7 +11,7 @@ Defaults to false as only pure-Julia algorithms can have this be true.
1111
isautodifferentiable(alg::AbstractSciMLAlgorithm) = false
1212

1313
"""
14-
forwarddiffs_model(alg::AbstractDEAlgorithm)
14+
forwarddiffs_model(alg::AbstractDEAlgorithm)
1515
1616
Trait declaration for whether an algorithm uses ForwardDiff.jl
1717
on the model function is called with ForwardDiff.jl
@@ -21,7 +21,7 @@ Defaults to false as only pure-Julia algorithms can have this be true.
2121
forwarddiffs_model(alg::AbstractSciMLAlgorithm) = false
2222

2323
"""
24-
forwarddiffs_model_time(alg::AbstractDEAlgorithm)
24+
forwarddiffs_model_time(alg::AbstractDEAlgorithm)
2525
2626
Trait declaration for whether an algorithm uses ForwardDiff.jl
2727
on the model `f(u,p,t)` function is called with ForwardDiff.jl on the `t` argument.
@@ -32,7 +32,7 @@ have this as true
3232
forwarddiffs_model_time(alg::AbstractSciMLAlgorithm) = false
3333

3434
"""
35-
allows_arbitrary_number_types(alg::AbstractDEAlgorithm)
35+
allows_arbitrary_number_types(alg::AbstractDEAlgorithm)
3636
3737
Trait declaration for whether an algorithm is compatible with
3838
direct automatic differentiation, i.e. can have algorithms like
@@ -44,7 +44,7 @@ Defaults to false as only pure-Julia algorithms can have this be true.
4444
allows_arbitrary_number_types(alg::AbstractSciMLAlgorithm) = false
4545

4646
"""
47-
allowscomplex(alg::AbstractDEAlgorithm)
47+
allowscomplex(alg::AbstractDEAlgorithm)
4848
4949
Trait declaration for whether an algorithm is compatible with
5050
having complex numbers as the state variables.
@@ -54,7 +54,7 @@ Defaults to false.
5454
allowscomplex(alg::AbstractSciMLAlgorithm) = false
5555

5656
"""
57-
isadaptive(alg::AbstractDEAlgorithm)
57+
isadaptive(alg::AbstractDEAlgorithm)
5858
5959
Trait declaration for whether an algorithm uses adaptivity,
6060
i.e. has a non-quasi-static compute graph.
@@ -65,7 +65,7 @@ isadaptive(alg::AbstractDEAlgorithm) = true
6565
# Default to assuming adaptive, safer error("Adaptivity algorithm trait not set.")
6666

6767
"""
68-
isdiscrete(alg::AbstractDEAlgorithm)
68+
isdiscrete(alg::AbstractDEAlgorithm)
6969
7070
Trait declaration for whether an algorithm allows for
7171
discrete state values, such as integers.
@@ -75,7 +75,7 @@ Defaults to false.
7575
isdiscrete(alg::AbstractDEAlgorithm) = false
7676

7777
"""
78-
allowsbounds(opt)
78+
allowsbounds(opt)
7979
8080
Trait declaration for whether an optimizer allows for
8181
box constraints passed with `lb` and `ub` in
@@ -86,7 +86,7 @@ Defaults to false.
8686
allowsbounds(opt) = false
8787

8888
"""
89-
requiresbounds(opt)
89+
requiresbounds(opt)
9090
9191
Trait declaration for whether an optimizer requires
9292
box constraints passed with `lb` and `ub` in
@@ -97,7 +97,7 @@ Defaults to false.
9797
requiresbounds(opt) = false
9898

9999
"""
100-
allowsconstraints(opt)
100+
allowsconstraints(opt)
101101
102102
Trait declaration for whether an optimizer allows
103103
non-linear constraints specified in `cons` in
@@ -108,7 +108,7 @@ Defaults to false.
108108
allowsconstraints(opt) = false
109109

110110
"""
111-
requiresconstraints(opt)
111+
requiresconstraints(opt)
112112
113113
Trait declaration for whether an optimizer
114114
requires non-linear constraints specified in
@@ -119,7 +119,7 @@ Defaults to false.
119119
requiresconstraints(opt) = false
120120

121121
"""
122-
requiresgradient(opt)
122+
requiresgradient(opt)
123123
124124
Trait declaration for whether an optimizer
125125
requires gradient in `instantiate_function`.
@@ -129,7 +129,7 @@ Defaults to false.
129129
requiresgradient(opt) = false
130130

131131
"""
132-
requireshessian(opt)
132+
requireshessian(opt)
133133
134134
Trait declaration for whether an optimizer
135135
requires hessian in `instantiate_function`.
@@ -139,7 +139,7 @@ Defaults to false.
139139
requireshessian(opt) = false
140140

141141
"""
142-
requiresconsjac(opt)
142+
requiresconsjac(opt)
143143
144144
Trait declaration for whether an optimizer
145145
requires cons_j in `instantiate_function`, that is, does the optimizer require a constant Jacobian.
@@ -149,7 +149,7 @@ Defaults to false.
149149
requiresconsjac(opt) = false
150150

151151
"""
152-
requiresconshess(opt)
152+
requiresconshess(opt)
153153
154154
Trait declaration for whether an optimizer
155155
requires cons_h in `instantiate_function`, that is, does the optimizer require a constant hessian.
@@ -159,7 +159,7 @@ Defaults to false.
159159
requiresconshess(opt) = false
160160

161161
"""
162-
allowscallback(opt)
162+
allowscallback(opt)
163163
164164
Trait declaration for whether an optimizer
165165
supports passing a `callback` to `solve`
@@ -170,7 +170,7 @@ Defaults to true.
170170
allowscallback(opt) = true
171171

172172
"""
173-
alg_order(alg)
173+
alg_order(alg)
174174
175175
The theoretic convergence order of the algorithm. If the method is adaptive order, this is treated
176176
as the maximum order of the algorithm.

src/integrator_interface.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ function reinit!(integrator::DEIntegrator, args...; kwargs...)
283283
end
284284

285285
"""
286-
initialize_dae!(integrator::DEIntegrator,initializealg = integrator.initializealg)
286+
initialize_dae!(integrator::DEIntegrator,initializealg = integrator.initializealg)
287287
288288
Runs the DAE initialization to find a consistent state vector. The optional
289289
argument `initializealg` can be used to specify a different initialization

src/operators/diffeq_operator.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
AffineDiffEqOperator{T} <: AbstractDiffEqOperator{T}
2+
AffineDiffEqOperator{T} <: AbstractDiffEqOperator{T}
33
44
`Ex: (A₁(t) + ... + Aₙ(t))*u + B₁(t) + ... + Bₘ(t)`
55

src/retcodes.jl

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
`SciML.ReturnCode`
2+
SciML.ReturnCode
33
44
`SciML.ReturnCode` is the standard return code enum interface for the SciML interface.
55
Return codes are notes given by the solvers to indicate the state of the solution, for
@@ -31,7 +31,7 @@ did not error.
3131
"""
3232
EnumX.@enumx ReturnCode begin
3333
"""
34-
`ReturnCode.Default`
34+
ReturnCode.Default
3535
3636
The default state of the solver. If this return code is given, then the solving
3737
process is either still in process or the solver library has not been setup
@@ -54,7 +54,7 @@ EnumX.@enumx ReturnCode begin
5454
Default
5555

5656
"""
57-
`ReturnCode.Success`
57+
ReturnCode.Success
5858
5959
The success state of the solver. If this return code is given, then the solving
6060
process was successful, but no extra information about that success is given.
@@ -71,7 +71,7 @@ EnumX.@enumx ReturnCode begin
7171
Success
7272

7373
"""
74-
`ReturnCode.Terminated`
74+
ReturnCode.Terminated
7575
7676
The successful termination state of the solver. If this return code is given,
7777
then the solving process was successful at terminating the solve, usually
@@ -95,7 +95,7 @@ EnumX.@enumx ReturnCode begin
9595
Terminated
9696

9797
"""
98-
`ReturnCode.DtNaN`
98+
ReturnCode.DtNaN
9999
100100
A failure exit state of the solver. If this return code is given, then the
101101
solving process was unsuccessful and exited early because the `dt` of the
@@ -118,7 +118,7 @@ EnumX.@enumx ReturnCode begin
118118
DtNaN
119119

120120
"""
121-
`ReturnCode.MaxIters`
121+
ReturnCode.MaxIters
122122
123123
A failure exit state of the solver. If this return code is given, then the
124124
solving process was unsuccessful and exited early because the solver's
@@ -150,7 +150,7 @@ EnumX.@enumx ReturnCode begin
150150
MaxIters
151151

152152
"""
153-
`ReturnCode.DtLessThanMin`
153+
ReturnCode.DtLessThanMin
154154
155155
A failure exit state of the solver. If this return code is given, then the
156156
solving process was unsuccessful and exited early because the `dt` of the
@@ -180,7 +180,7 @@ EnumX.@enumx ReturnCode begin
180180
DtLessThanMin
181181

182182
"""
183-
`ReturnCode.Unstable`
183+
ReturnCode.Unstable
184184
185185
A failure exit state of the solver. If this return code is given, then the
186186
solving process was unsuccessful and exited early because the `unstable_check`
@@ -199,7 +199,7 @@ EnumX.@enumx ReturnCode begin
199199
Unstable
200200

201201
"""
202-
`ReturnCode.InitialFailure`
202+
ReturnCode.InitialFailure
203203
204204
A failure exit state of the solver. If this return code is given, then the
205205
solving process was unsuccessful because the initialization process failed.
@@ -224,7 +224,7 @@ EnumX.@enumx ReturnCode begin
224224
InitialFailure
225225

226226
"""
227-
`ReturnCode.ConvergenceFailure`
227+
ReturnCode.ConvergenceFailure
228228
229229
A failure exit state of the solver. If this return code is given, then the
230230
solving process was unsuccessful because internal nonlinear solver iterations
@@ -247,7 +247,7 @@ EnumX.@enumx ReturnCode begin
247247
ConvergenceFailure
248248

249249
"""
250-
`ReturnCode.Failure`
250+
ReturnCode.Failure
251251
252252
A failure exit state of the solver. If this return code is given, then the
253253
solving process was unsuccessful but no extra information is given.
@@ -265,7 +265,7 @@ EnumX.@enumx ReturnCode begin
265265
Failure
266266

267267
"""
268-
`ReturnCode.ExactSolutionLeft`
268+
ReturnCode.ExactSolutionLeft
269269
270270
The success state of the solver. If this return code is given, then the solving
271271
process was successful, and the left solution was given.
@@ -284,7 +284,7 @@ EnumX.@enumx ReturnCode begin
284284
ExactSolutionLeft
285285

286286
"""
287-
`ReturnCode.ExactSolutionRight`
287+
ReturnCode.ExactSolutionRight
288288
289289
The success state of the solver. If this return code is given, then the solving
290290
process was successful, and the right solution was given.
@@ -303,7 +303,7 @@ EnumX.@enumx ReturnCode begin
303303
ExactSolutionRight
304304

305305
"""
306-
`ReturnCode.FloatingPointLimit`
306+
ReturnCode.FloatingPointLimit
307307
308308
The success state of the solver. If this return code is given, then the solving
309309
process was successful, and the closest floating point value to the solution was given.
@@ -322,7 +322,7 @@ EnumX.@enumx ReturnCode begin
322322
FloatingPointLimit
323323

324324
"""
325-
`ReturnCode.Infeasible`
325+
ReturnCode.Infeasible
326326
327327
The optimization problem was proven to be infeasible by the solver.
328328
@@ -333,7 +333,7 @@ EnumX.@enumx ReturnCode begin
333333
Infeasible
334334

335335
"""
336-
`ReturnCode.MaxTime`
336+
ReturnCode.MaxTime
337337
338338
A failure exit state of the solver. If this return code is given, then the
339339
solving process was unsuccessful and exited early because the solver's
@@ -347,7 +347,7 @@ EnumX.@enumx ReturnCode begin
347347
MaxTime
348348

349349
"""
350-
`ReturnCode.InternalLineSearchFailed`
350+
ReturnCode.InternalLineSearchFailed
351351
352352
Internal Line Search used by the algorithm has failed.
353353
@@ -358,7 +358,7 @@ EnumX.@enumx ReturnCode begin
358358
InternalLineSearchFailed
359359

360360
"""
361-
`ReturnCode.ShrinkThresholdExceeded`
361+
ReturnCode.ShrinkThresholdExceeded
362362
363363
The trust region radius was shrunk more times than the provided threshold.
364364
@@ -369,7 +369,7 @@ EnumX.@enumx ReturnCode begin
369369
ShrinkThresholdExceeded
370370

371371
"""
372-
`ReturnCode.Stalled`
372+
ReturnCode.Stalled
373373
374374
The solution has stalled. This is only returned by algorithms for which stalling is a
375375
failure mode. Certain solvers like Nonlinear Least Squares solvers are considered
@@ -382,7 +382,7 @@ EnumX.@enumx ReturnCode begin
382382
Stalled
383383

384384
"""
385-
`ReturnCode.InternalLinearSolveFailed`
385+
ReturnCode.InternalLinearSolveFailed
386386
387387
The linear problem inside another problem (for example inside a NonlinearProblem)
388388
could not be solved.
@@ -477,8 +477,8 @@ function Base.convert(::Type{ReturnCode.T}, bool::Bool)
477477
end
478478

479479
"""
480-
`successful_retcode(retcode::ReturnCode.T)::Bool`
481-
`successful_retcode(sol::AbstractSciMLSolution)::Bool`
480+
successful_retcode(retcode::ReturnCode.T)::Bool
481+
successful_retcode(sol::AbstractSciMLSolution)::Bool
482482
483483
Returns a boolean for whether a return code should be interpreted as a form of success.
484484
"""

0 commit comments

Comments
 (0)