Skip to content

Commit 8fad36d

Browse files
committed
add missing constructor
1 parent 1991ab7 commit 8fad36d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/tensors/sparseblocktensor.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ function SparseBlockTensorMap{TT}(
4646
) where {E, S, N₁, N₂, N, TT <: AbstractTensorMap{E, S, N₁, N₂}}
4747
return SparseBlockTensorMap{TT, E, S, N₁, N₂, N}(data, space)
4848
end
49+
function SparseBlockTensorMap(
50+
data::Dict{CartesianIndex{N}, TT}, space::TensorMapSumSpace{S, N₁, N₂}
51+
) where {E, S, N₁, N₂, N, TT <: AbstractTensorMap{E, S, N₁, N₂}}
52+
return SparseBlockTensorMap{TT}(data, space)
53+
end
4954

5055
function sparseblocktensormaptype(::Type{S}, N₁::Int, N₂::Int, ::Type{T}) where {S, T}
5156
TT = tensormaptype(S, N₁, N₂, T)

0 commit comments

Comments
 (0)