|
1 | 1 | module JumpProcesses |
2 | 2 |
|
3 | | -using Reexport |
| 3 | +using Reexport: Reexport, @reexport |
4 | 4 | @reexport using DiffEqBase |
5 | 5 |
|
6 | | -using LinearAlgebra, Markdown, DocStringExtensions |
7 | | -using DataStructures, PoissonRandom, Random, ArrayInterface |
8 | | -using FunctionWrappers, UnPack |
9 | | -using Graphs |
10 | | -using SciMLBase: SciMLBase, isdenseplot |
| 6 | +# Explicit imports from standard libraries |
| 7 | +using LinearAlgebra: LinearAlgebra, I, mul! |
| 8 | +using Markdown: Markdown |
| 9 | +using Random: Random, randexp, randexp! |
| 10 | + |
| 11 | +# Explicit imports from external packages |
| 12 | +using DocStringExtensions: DocStringExtensions, FIELDS, TYPEDEF |
| 13 | +using DataStructures: DataStructures, MutableBinaryMinHeap, sizehint!, top_with_handle |
| 14 | +using PoissonRandom: PoissonRandom, pois_rand |
| 15 | +using ArrayInterface: ArrayInterface |
| 16 | +using FunctionWrappers: FunctionWrappers |
| 17 | +using UnPack: UnPack, @unpack |
| 18 | +using Graphs: Graphs, AbstractGraph, dst, grid, src |
| 19 | +using StaticArrays: StaticArrays, SA, SVector, @SVector, setindex |
| 20 | +using Base.Threads: Threads, @threads |
11 | 21 | using Base.FastMath: add_fast |
12 | 22 | using Setfield: @set, @set! |
13 | 23 |
|
14 | | -import DiffEqCallbacks: gauss_points, gauss_weights |
15 | | -import DiffEqBase: DiscreteCallback, init, solve, solve!, plot_indices, initialize!, |
16 | | - get_tstops, get_tstops_array, get_tstops_max |
| 24 | +# Import functions we extend from Base |
17 | 25 | import Base: size, getindex, setindex!, length, similar, show, merge!, merge |
| 26 | + |
| 27 | +# Import functions we extend from packages |
| 28 | +import DiffEqCallbacks: gauss_points, gauss_weights |
| 29 | +import DiffEqBase: DiscreteCallback, init, solve, solve!, initialize! |
| 30 | +import SciMLBase: plot_indices |
18 | 31 | import DataStructures: update! |
19 | 32 | import Graphs: neighbors, outdegree |
20 | | - |
21 | 33 | import RecursiveArrayTools: recursivecopy! |
22 | | -using StaticArrays, Base.Threads |
23 | 34 | import SymbolicIndexingInterface as SII |
24 | 35 |
|
25 | | -import Random: AbstractRNG |
| 36 | +# Import additional types and functions from DiffEqBase and SciMLBase |
| 37 | +using DiffEqBase: DiffEqBase, CallbackSet, ContinuousCallback, DAEFunction, |
| 38 | + DDEFunction, DiscreteProblem, ODEFunction, ODEProblem, |
| 39 | + ODESolution, ReturnCode, SDEFunction, SDEProblem, add_tstop!, |
| 40 | + deleteat!, isinplace, remake, savevalues!, step!, |
| 41 | + u_modified! |
| 42 | +using SciMLBase: SciMLBase, DEIntegrator |
26 | 43 |
|
27 | 44 | abstract type AbstractJump end |
28 | 45 | abstract type AbstractMassActionJump <: AbstractJump end |
29 | 46 | abstract type AbstractAggregatorAlgorithm end |
30 | 47 | abstract type AbstractJumpAggregator end |
31 | 48 | abstract type AbstractSSAIntegrator{Alg, IIP, U, T} <: |
32 | | - DiffEqBase.DEIntegrator{Alg, IIP, U, T} end |
33 | | - |
34 | | -import Base.Threads |
| 49 | + DEIntegrator{Alg, IIP, U, T} end |
35 | 50 |
|
36 | 51 | const DEFAULT_RNG = Random.default_rng() |
37 | 52 |
|
|
0 commit comments