Skip to content

Commit 25e8b1f

Browse files
JoeyT1994mtfishman
andauthored
Update src/contractnetwork.jl
Co-authored-by: Matt Fishman <[email protected]>
1 parent 3ff8f30 commit 25e8b1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/contractnetwork.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function contraction_sequence_to_expr(seq)
1818
end
1919

2020
function contraction_sequence(::Algorithm"leftassociative", tn::Vector{<:AbstractArray})
21-
return contraction_sequence_to_expr(collect(1:length(tn)))
21+
return prod(symnameddims, 1:length(tn))
2222
end
2323

2424
function contraction_sequence(tn::Vector{<:AbstractArray}; alg = default_sequence_alg)

0 commit comments

Comments
 (0)