Skip to content

Commit 2fc78b2

Browse files
authored
feat: dispatch on eltype for more wrapped arrays (#981)
1 parent 8ea467f commit 2fc78b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/TracedRArray.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ end
437437
function Base.mapreduce(
438438
@nospecialize(f),
439439
@nospecialize(op),
440-
@nospecialize(A::AnyTracedRArray{T,N});
440+
@nospecialize(A::AbstractArray{<:TracedRNumber{T},N});
441441
dims=:,
442442
init=nothing,
443443
) where {T,N}
@@ -537,9 +537,9 @@ end
537537
function Base.mapreducedim!(
538538
@nospecialize(f),
539539
@nospecialize(op),
540-
@nospecialize(R::AnyTracedRArray),
540+
@nospecialize(R::AbstractArray{<:TracedRNumber{T},N}),
541541
A::Base.AbstractArrayOrBroadcasted,
542-
)
542+
) where {T,N}
543543
@assert length(size(R)) == length(size(A))
544544
dims = map(enumerate(zip(size(R), size(A)))) do (i, (sR, sA))
545545
sR == sA && return nothing

0 commit comments

Comments
 (0)