Skip to content

Commit 715e2d5

Browse files
committed
kwarg addition
1 parent 411ec2a commit 715e2d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PreallocationTools.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ and for the `Dual` version of `u`, allowing use of pre-cached vectors with
2222
forward-mode automatic differentiation. Supports nested AD.
2323
2424
"""
25-
dualcache(u::AbstractArray, N::Int=ForwardDiff.pickchunksize(length(u)); levels::Int = 1) = DiffCache(u, size(u), N^levels)
25+
dualcache(u::AbstractArray, N::Int=ForwardDiff.pickchunksize(length(u)); levels::Int = 1) = DiffCache(u, size(u), N*ones(Int, levels))
2626
dualcache(u::AbstractArray, N::AbstractArray{<:Int}) = DiffCache(u, size(u), N)
2727

2828
"""

0 commit comments

Comments
 (0)