We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6c13cf commit e367d9eCopy full SHA for e367d9e
src/array_partition.jl
@@ -15,6 +15,7 @@ Base.similar(A::ArrayPartition, T, dims::Tuple) = ArrayPartition(similar.(A.x, T
15
16
Base.copy(A::ArrayPartition) = Base.similar(A)
17
Base.zeros(A::ArrayPartition) = ArrayPartition((zeros(x) for x in A.x)...)
18
+Base.eltype(A::ArrayPartition) = eltype(A.x[1])
19
20
# Special to work with units
21
function Base.ones(A::ArrayPartition)
0 commit comments