Skip to content

Commit 48b0e9b

Browse files
Explicit imports
1 parent 4db4000 commit 48b0e9b

25 files changed

+251
-220
lines changed

docs/src/api/SciMLJacobianOperators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ operator built on top on DifferentiationInterface.jl.
1010
```julia
1111
import Pkg
1212
Pkg.add("SciMLJacobianOperators")
13-
using SciMLJacobianOperators
13+
import SciMLJacobianOperators
1414
```
1515

1616
## Jacobian API

docs/src/api/fastlevenbergmarquardt.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ interface. Note that these solvers do not come by default, and thus one needs to
55
the package before using these solvers:
66

77
```julia
8-
using Pkg
8+
import Pkg
99
Pkg.add("FastLevenbergMarquardt")
10-
using FastLevenbergMarquardt, NonlinearSolve
10+
import FastLevenbergMarquardt
11+
import NonlinearSolve as NLS
1112
```
1213

1314
## Solver API

docs/src/api/fixedpointacceleration.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ interface. Note that these solvers do not come by default, and thus one needs to
55
the package before using these solvers:
66

77
```julia
8-
using Pkg
8+
import Pkg
99
Pkg.add("FixedPointAcceleration")
10-
using FixedPointAcceleration, NonlinearSolve
10+
import FixedPointAcceleration
11+
import NonlinearSolve as NLS
1112
```
1213

1314
## Solver API

docs/src/api/homotopycontinuation.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ HomotopyContinuation.jl. This solver is not included by default and needs
55
to be installed separately:
66

77
```julia
8-
using Pkg
8+
import Pkg
99
Pkg.add("NonlinearSolveHomotopyContinuation")
10-
using NonlinearSolveHomotopyContinuation, NonlinearSolve
10+
import NonlinearSolveHomotopyContinuation
11+
import NonlinearSolve as NLS
1112
```
1213

1314
# Solver API

docs/src/api/leastsquaresoptim.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ interface. Note that these solvers do not come by default, and thus one needs to
55
the package before using these solvers:
66

77
```julia
8-
using Pkg
8+
import Pkg
99
Pkg.add("LeastSquaresOptim")
10-
using LeastSquaresOptim, NonlinearSolve
10+
import LeastSquaresOptim
11+
import NonlinearSolve as NLS
1112
```
1213

1314
## Solver API

docs/src/api/minpack.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ these solvers do not come by default, and thus one needs to install the package
55
these solvers:
66

77
```julia
8-
using Pkg
8+
import Pkg
99
Pkg.add("MINPACK")
10-
using MINPACK, NonlinearSolve
10+
import MINPACK
11+
import NonlinearSolve as NLS
1112
```
1213

1314
## Solver API

docs/src/api/nlsolve.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ that these solvers do not come by default, and thus one needs to install the pac
55
using these solvers:
66

77
```julia
8-
using Pkg
8+
import Pkg
99
Pkg.add("NLsolve")
10-
using NLsolve, NonlinearSolve
10+
import NLsolve
11+
import NonlinearSolve as NLS
1112
```
1213

1314
## Solver API

docs/src/api/nlsolvers.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ that these solvers do not come by default, and thus one needs to install the pac
55
using these solvers:
66

77
```julia
8-
using Pkg
8+
import Pkg
99
Pkg.add("NLSolvers")
10-
using NLSolvers, NonlinearSolve
10+
import NLSolvers
11+
import NonlinearSolve as NLS
1112
```
1213

1314
## Solver API

docs/src/api/petsc.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ that these solvers do not come by default, and thus one needs to install the pac
55
using these solvers:
66

77
```julia
8-
using Pkg
8+
import Pkg
99
Pkg.add("PETSc")
10-
using PETSc, NonlinearSolve
10+
import PETSc
11+
import NonlinearSolve as NLS
1112
```
1213

1314
## Solver API

docs/src/api/siamfanlequations.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ interface. Note that these solvers do not come by default, and thus one needs to
66
the package before using these solvers:
77

88
```julia
9-
using Pkg
9+
import Pkg
1010
Pkg.add("SIAMFANLEquations")
11-
using SIAMFANLEquations, NonlinearSolve
11+
import SIAMFANLEquations
12+
import NonlinearSolve as NLS
1213
```
1314

1415
## Solver API

0 commit comments

Comments
 (0)