Skip to content

Commit

Permalink
small extra bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jutho committed Mar 26, 2023
1 parent 1b122fd commit c5aa8cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tensors/tensor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,13 @@ function TensorMap(data::AbstractDict{<:Sector,<:DenseMatrix}, codom::ProductSpa
b = valtype(data)(undef, (0,0))
V = typeof(complex(b))
K = keytype(data)
data2 = SectorDict{K,V}((c=>complex(data[c])) for c in blocksectoriterator)
data2 = SectorDict{K,V}((c=>complex(data[c])) for c in keys(rowr))
A = typeof(data2)
return TensorMap{S, N₁, N₂, I, A, F₁, F₂}(data2, codom, dom, rowr, colr)
else
V = valtype(data)
K = keytype(data)
data2 = SectorDict{K,V}((c=>data[c]) for c in blocksectoriterator)
data2 = SectorDict{K,V}((c=>data[c]) for c in keys(rowr))
A = typeof(data2)
return TensorMap{S, N₁, N₂, I, A, F₁, F₂}(data2, codom, dom, rowr, colr)
end
Expand Down

0 comments on commit c5aa8cb

Please sign in to comment.