Skip to content

Commit e367d9e

Browse files
eltype of ArrayPartition
1 parent c6c13cf commit e367d9e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/array_partition.jl

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Base.similar(A::ArrayPartition, T, dims::Tuple) = ArrayPartition(similar.(A.x, T
1515

1616
Base.copy(A::ArrayPartition) = Base.similar(A)
1717
Base.zeros(A::ArrayPartition) = ArrayPartition((zeros(x) for x in A.x)...)
18+
Base.eltype(A::ArrayPartition) = eltype(A.x[1])
1819

1920
# Special to work with units
2021
function Base.ones(A::ArrayPartition)

0 commit comments

Comments
 (0)