Skip to content

Commit b099b3c

Browse files
committed
bug fix in partial_tr
1 parent 17556ac commit b099b3c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "LatticeMatrices"
22
uuid = "dd6a91e4-736f-4540-ac85-13822ca7b545"
33
authors = ["Yuki Nagai <cometscome@gmail.com>"]
4-
version = "0.0.3"
4+
version = "0.0.4"
55

66
[deps]
77
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"

src/LinearAlgebras/linearalgebra_D.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3280,7 +3280,7 @@ export partial_trace
32803280

32813281

32823282
s = zero(eltype(A))
3283-
if NN[μ] == position
3283+
if indices[μ] == position
32843284
for ic = 1:NC
32853285
s += A[ic, ic, indices...]
32863286
end

0 commit comments

Comments
 (0)