We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
eltype
BlockIterator
1 parent e23e092 commit 8ec577eCopy full SHA for 8ec577e
src/tensors/blockiterator.jl
@@ -10,6 +10,6 @@ end
10
11
Base.IteratorSize(::BlockIterator) = Base.HasLength()
12
Base.IteratorEltype(::BlockIterator) = Base.HasEltype()
13
-Base.eltype(::Type{<:BlockIterator{T}}) where {T} = blocktype(T)
+Base.eltype(::Type{<:BlockIterator{T}}) where {T} = Pair{sectortype(T),blocktype(T)}
14
Base.length(iter::BlockIterator) = length(iter.structure)
15
Base.isdone(iter::BlockIterator, state...) = Base.isdone(iter.structure, state...)
0 commit comments