Skip to content

Commit

Permalink
chore: remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Oct 26, 2024
1 parent 2ec5d01 commit 6d5f743
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
3 changes: 2 additions & 1 deletion lib/NonlinearSolveBase/src/jacobian.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ Construct a cache for the Jacobian of `f` w.r.t. `u`.
- `jvp_autodiff`: Automatic Differentiation or Finite Differencing backend for computing
the Jacobian-vector product.
- `linsolve`: Linear Solver Algorithm used to determine if we need a concrete jacobian
or if possible we can just use a `SciMLJacobianOperators.JacobianOperator` instead.
or if possible we can just use a [`SciMLJacobianOperators.JacobianOperator`](@ref)
instead.
"""
function construct_jacobian_cache(
prob, alg, f::NonlinearFunction, fu, u = prob.u0, p = prob.p; stats,
Expand Down
15 changes: 6 additions & 9 deletions src/NonlinearSolve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@ using ConcreteStructs: @concrete
using DiffEqBase: DiffEqBase # Needed for `init` / `solve` dispatches
using FastClosures: @closure
using LazyArrays: LazyArrays, ApplyArray, cache
using LinearAlgebra: LinearAlgebra, ColumnNorm, Diagonal, I, LowerTriangular, Symmetric,
using LinearAlgebra: LinearAlgebra, Diagonal, I, LowerTriangular, Symmetric,
UpperTriangular, axpy!, cond, diag, diagind, dot, issuccess, istril,
istriu, lu, mul!, norm, pinv, tril!, triu!
using LineSearch: LineSearch, AbstractLineSearchCache, LineSearchesJL, NoLineSearch,
RobustNonMonotoneLineSearch, BackTracking, LiFukushimaLineSearch
using LinearSolve: LinearSolve, QRFactorization, needs_concrete_A, AbstractFactorization,
DefaultAlgorithmChoice, DefaultLinearSolver
using LinearSolve: LinearSolve
using MaybeInplace: @bb
using NonlinearSolveBase: NonlinearSolveBase,
nonlinearsolve_forwarddiff_solve, nonlinearsolve_dual_solution,
Expand Down Expand Up @@ -47,18 +46,16 @@ using SymbolicIndexingInterface: SymbolicIndexingInterface, ParameterIndexingPro

# AD Support
using ADTypes: ADTypes, AbstractADType, AutoFiniteDiff, AutoForwardDiff,
AutoPolyesterForwardDiff, AutoZygote, AutoEnzyme, AutoSparse,
NoSparsityDetector, KnownJacobianSparsityDetector
using DifferentiationInterface: DifferentiationInterface, Constant
AutoPolyesterForwardDiff, AutoZygote, AutoEnzyme, AutoSparse
using DifferentiationInterface: DifferentiationInterface
using FiniteDiff: FiniteDiff
using ForwardDiff: ForwardDiff, Dual
using SciMLJacobianOperators: AbstractJacobianOperator, JacobianOperator, VecJacOperator,
using SciMLJacobianOperators: AbstractJacobianOperator, VecJacOperator,
JacVecOperator, StatefulJacobianOperator

## Sparse AD Support
using SparseArrays: AbstractSparseMatrix, SparseMatrixCSC
using SparseMatrixColorings: ConstantColoringAlgorithm, GreedyColoringAlgorithm,
LargestFirst
using SparseMatrixColorings: SparseMatrixColorings # NOTE: This triggers an extension in NonlinearSolveBase

const DI = DifferentiationInterface

Expand Down

0 comments on commit 6d5f743

Please sign in to comment.