Skip to content

Commit

Permalink
_buffer_frame for Cartesian index
Browse files Browse the repository at this point in the history
  • Loading branch information
CasBex committed Aug 7, 2023
1 parent 45f79d4 commit c78e3b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/CircularArrayBuffers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ end
end
end

_buffer_frame(cb::CircularArrayBuffer, I::CartesianIndex) = map(i -> _buffer_frame(cb, i), Tuple(I)...)
_buffer_frame(cb::CircularArrayBuffer, I::AbstractArray{<:Integer}) = map(i -> _buffer_frame(cb, i), I)
_buffer_frame(cb::CircularArrayBuffer, ::Colon) = _buffer_frame(cb, axes(cb)[end])

Expand Down

0 comments on commit c78e3b5

Please sign in to comment.