Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
lpawela committed Apr 4, 2024
1 parent 98d8208 commit 1be857a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contractions/diagonal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function contract_tensor3_matrix(B::Tensor{R,3}, C::DiagonalTensor{R}) where {R<
B = reshape(B, size(B, 1), size(B, 2) ÷ s1, s1, size(B, 3))
B = permutedims(B, (1, 2, 4, 3))
# @cast B[l, (r, q2), s1] := B[l, r, q2, s1]
B = reshape(B, size(B, 1), size(B, 2) * size(B, 3), szie(B, 4))
B = reshape(B, size(B, 1), size(B, 2) * size(B, 3), size(B, 4))
B = contract_tensor3_matrix(B, C.e1)
# @cast B[l, r, (q2, q1)] := B[l, (r, q2), q1] (q2 ∈ 1:size(C.e2, 2))
q2 = size(C.e2, 2)
Expand Down

0 comments on commit 1be857a

Please sign in to comment.