diff --git a/Project.toml b/Project.toml index 143f86d..1175406 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "BlockSparseArrays" uuid = "2c9a651f-6452-4ace-a6ac-809f4280fbb4" authors = ["ITensor developers and contributors"] -version = "0.9.3" +version = "0.9.4" [deps] Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e" diff --git a/src/blocksparsearrayinterface/getunstoredblock.jl b/src/blocksparsearrayinterface/getunstoredblock.jl index 0669096..c5ae1dc 100644 --- a/src/blocksparsearrayinterface/getunstoredblock.jl +++ b/src/blocksparsearrayinterface/getunstoredblock.jl @@ -18,17 +18,10 @@ function Base.AbstractArray{A}(a::ZeroBlocks{N}) where {N,A} end @inline function Base.getindex(a::ZeroBlocks{N,A}, I::Vararg{Int,N}) where {N,A} - - #foreach(display, a.parentaxes) - #foreach(display ∘ eachblockaxis, a.parentaxes) - # TODO: Use `BlockArrays.eachblockaxes`. ax = ntuple(N) do d return eachblockaxis(a.parentaxes[d])[I[d]] end - - #@show ax - !isconcretetype(A) && return zero!(similar(Array{eltype(A),N}, ax)) return zero!(similar(A, ax)) end