Skip to content

Commit 30b8128

Browse files
claudeChrisRackauckas
authored andcommitted
[ci skip] Fix spelling errors\n\n- LSO -> ALSO in ext/NonlinearSolveLeastSquaresOptimExt.jl\n- theorectically -> theoretically in lib/NonlinearSolveBase/src/descent/geodesic_acceleration.jl\n- copyies -> copies in lib/NonlinearSolveBase/src/tracing.jl
1 parent fe05905 commit 30b8128

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

ext/NonlinearSolveLeastSquaresOptimExt.jl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ using NonlinearSolveBase: NonlinearSolveBase, TraceMinimal
66
using NonlinearSolve: NonlinearSolve, LeastSquaresOptimJL
77
using SciMLBase: SciMLBase, AbstractNonlinearProblem, ReturnCode
88

9-
const LSO = LeastSquaresOptim
9+
const ALSO = LeastSquaresOptim
1010

1111
function SciMLBase.__solve(
1212
prob::AbstractNonlinearProblem, alg::LeastSquaresOptimJL, args...;
@@ -23,32 +23,32 @@ function SciMLBase.__solve(
2323
reltol = NonlinearSolveBase.get_tolerance(reltol, eltype(u))
2424

2525
if prob.f.jac === nothing && alg.autodiff isa Symbol
26-
lsoprob = LSO.LeastSquaresProblem(;
26+
lsoprob = ALSO.LeastSquaresProblem(;
2727
x = u, f!, y = resid, alg.autodiff, J = prob.f.jac_prototype,
2828
output_length = length(resid)
2929
)
3030
else
3131
g! = NonlinearSolveBase.construct_extension_jac(prob, alg, u, resid; alg.autodiff)
32-
lsoprob = LSO.LeastSquaresProblem(;
32+
lsoprob = ALSO.LeastSquaresProblem(;
3333
x = u, f!, y = resid, g!, J = prob.f.jac_prototype,
3434
output_length = length(resid)
3535
)
3636
end
3737

38-
linsolve = alg.linsolve === :qr ? LSO.QR() :
39-
(alg.linsolve === :cholesky ? LSO.Cholesky() :
40-
(alg.linsolve === :lsmr ? LSO.LSMR() : nothing))
38+
linsolve = alg.linsolve === :qr ? ALSO.QR() :
39+
(alg.linsolve === :cholesky ? ALSO.Cholesky() :
40+
(alg.linsolve === :lsmr ? ALSO.LSMR() : nothing))
4141

4242
lso_solver = if alg.alg === :lm
43-
LSO.LevenbergMarquardt(linsolve)
43+
ALSO.LevenbergMarquardt(linsolve)
4444
elseif alg.alg === :dogleg
45-
LSO.Dogleg(linsolve)
45+
ALSO.Dogleg(linsolve)
4646
else
4747
throw(ArgumentError("Unknown LeastSquaresOptim Algorithm: $(Meta.quot(alg.alg))"))
4848
end
4949

50-
allocated_prob = LSO.LeastSquaresProblemAllocated(lsoprob, lso_solver)
51-
res = LSO.optimize!(
50+
allocated_prob = ALSO.LeastSquaresProblemAllocated(lsoprob, lso_solver)
51+
res = ALSO.optimize!(
5252
allocated_prob;
5353
x_tol = reltol, f_tol = abstol, g_tol = abstol, iterations = maxiters,
5454
show_trace = show_trace isa Val{true}, store_trace = store_trace isa Val{true},

lib/NonlinearSolveBase/src/descent/geodesic_acceleration.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ geodesic acceleration method. The velocity and acceleration terms are then combi
66
compute the descent direction.
77
88
This method in its current form was developed for `LevenbergMarquardt`. Performance
9-
for other methods are not theorectically or experimentally verified.
9+
for other methods are not theoretically or experimentally verified.
1010
1111
### Keyword Arguments
1212

lib/NonlinearSolveBase/src/tracing.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ end
4040
4141
!!! warning
4242
43-
This is very expensive and makes copyies of the Jacobian, u, f(u), and δu.
43+
This is very expensive and makes copies of the Jacobian, u, f(u), and δu.
4444
4545
See also [`TraceMinimal`](@ref) and [`TraceWithJacobianConditionNumber`](@ref).
4646
"""

0 commit comments

Comments
 (0)