Skip to content

Commit 56e735b

Browse files
zero for array partition
1 parent b6a1411 commit 56e735b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/array_partition.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ Base.copy(A::ArrayPartition{T,S}) where {T,S} = ArrayPartition{T,S}(copy.(A.x))
5050

5151
## zeros
5252

53+
Base.zero(A::ArrayPartition{T,S}) where {T,S} = ArrayPartition{T,S}(zero.(A.x))
5354
Base.zeros(A::ArrayPartition{T,S}) where {T,S} = ArrayPartition{T,S}(zeros.(A.x))
5455

5556
# ignore dims since array partitions are vectors

0 commit comments

Comments
 (0)