Skip to content

Commit

Permalink
Update src/TracedRArray.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal authored Dec 12, 2024
1 parent a98911c commit 602dc6a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/TracedRArray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,9 @@ for (minT, maxT) in Iterators.product((Number, TracedRNumber), (Number, TracedRN
end
end

Base.all(f::Function, x::AnyTracedRArray) = mapreduce(f, &, x)
Base.any(f::Function, x::AnyTracedRArray) = mapreduce(f, |, x)

# outer repeat
function Base.repeat(x::AnyTracedRArray{T,N}, counts::Vararg{Int,M}) where {T,N,M}
P = max(N, M) # potentially padded
Expand Down

0 comments on commit 602dc6a

Please sign in to comment.