Skip to content

Commit e689a51

Browse files
Update PreallocationTools.jl
1 parent d50ff3d commit e689a51

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/PreallocationTools.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ or specifying an array of chunk_sizes.
2525
"""
2626
dualcache(u::AbstractArray, N::Int=ForwardDiff.pickchunksize(length(u)); levels::Int = 1) = DiffCache(u, size(u), N*ones(Int, levels))
2727
dualcache(u::AbstractArray, N::AbstractArray{<:Int}) = DiffCache(u, size(u), N)
28+
dualcache(u::AbstractArray, ::Type{Val{N}}; levels::Int = 1) where N = dualcache(u,N;levels)
2829
dualcache(u::AbstractArray, ::Val{N}; levels::Int = 1) where N = dualcache(u,N;levels)
2930

3031
"""

0 commit comments

Comments
 (0)