ITensor / NDTensors.jl

A Julia package for n-dimensional sparse tensors.
Apache License 2.0
27 stars 7 forks source link

Bug in DiagBlockSparseTensor show method #61

Closed emstoudenmire closed 3 years ago

emstoudenmire commented 3 years ago

On line 569 of blocksparse/diagblocksparse.jl, the code which unpacks the iterated value seems out-of-date:

for (n, (block, _)) in enumerate(diagblockoffsets(T))

whereas it seems like now the values returned by diagblockoffsets are just plain integers rather than Tuples or some other iterable type. I tried replacing (block,_) with just block but the rest of the code inside the loop apparently still expects block to be a type other than integer.