Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/array_partition.jl
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,13 @@ function Base.copyto!(A::ArrayPartition, src::ArrayPartition)
A
end

function Base.fill!(A::ArrayPartition, x)
for i in eachindex(A.x)
fill!(A.x[i], x)
end
A
end

## indexing

# Interface for the linear indexing. This is just a view of the underlying nested structure
Expand Down
Loading