Skip to content

Commit

Permalink
bufgix_modify_params
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaqz committed Dec 6, 2024
1 parent a5585f5 commit 0fc5df4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function modify end
modify(f, s::AbstractDimStack) = maplayers(a -> modify(f, a), s)
# Stack optimisation to avoid compilation to build all the `AbstractDimArray`
# layers, and instead just modify the parent data directly.
modify(f, s::AbstractDimStack{<:Any,<:NamedTuple}) =
modify(f, s::AbstractDimStack{<:Any,<:Any,<:NamedTuple}) =
rebuild(s; data=map(a -> modify(f, a), parent(s)))
function modify(f, A::AbstractDimArray)
newdata = f(parent(A))
Expand Down

0 comments on commit 0fc5df4

Please sign in to comment.