Skip to content

Commit 79ebb14

Browse files
committed
Small simplification in blockless unmatricize
1 parent d627bb1 commit 79ebb14

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/BlockSparseArraysTensorAlgebraExt/BlockSparseArraysTensorAlgebraExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function TensorAlgebra.unmatricize(
8080
valtype = Base.promote_op(value, eltype(Is))
8181
valtype′ =
8282
!isconcretetype(valtype) ? AbstractArray{eltype(m), length(ax)} : valtype
83-
bs = Dict{keytype, valtype′}(key(I) => value(I) for I in Is)
83+
bs = Dict{keytype, valtype′}()
8484
else
8585
Dict(key(I) => value(I) for I in eachstoredindex(reshaped_blocks_m))
8686
end

0 commit comments

Comments
 (0)