@@ -3,15 +3,18 @@ module PreallocationToolsSparseConnectivityTracerExt
33using PreallocationTools: PreallocationTools, DiffCache, get_tmp
44using SparseConnectivityTracer: AbstractTracer, Dual
55
6- function PreallocationTools. get_tmp (dc:: DiffCache , u:: T ) where {T <: Union{AbstractTracer, Dual} }
6+ function PreallocationTools. get_tmp (
7+ dc:: DiffCache , u:: T ) where {T <: Union{AbstractTracer, Dual} }
78 return get_tmp (dc, typeof (u))
89end
910
10- function PreallocationTools. get_tmp (dc:: DiffCache , u:: AbstractArray{<:T} ) where {T <: Union{AbstractTracer, Dual} }
11+ function PreallocationTools. get_tmp (
12+ dc:: DiffCache , u:: AbstractArray{<:T} ) where {T <: Union{AbstractTracer, Dual} }
1113 return get_tmp (dc, eltype (u))
1214end
1315
14- function PreallocationTools. get_tmp (dc:: DiffCache , :: Type{T} ) where {T <: Union{AbstractTracer, Dual} }
16+ function PreallocationTools. get_tmp (
17+ dc:: DiffCache , :: Type{T} ) where {T <: Union{AbstractTracer, Dual} }
1518 # We allocate memory here since we assume that sparsity connection happens only
1619 # once (or maybe a few times). This simplifies the implementation and allows us
1720 # to save memory in the long run since we do not need to store an additional
0 commit comments