Skip to content

Commit a1db183

Browse files
committed
bug fix in dot
1 parent 34a37ad commit a1db183

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.1.3"
4+
version = "0.1.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
@@ -3266,7 +3266,7 @@ end
32663266

32673267
function LinearAlgebra.dot(A::LatticeMatrix{D,T1,AT1,NC1,1,nw,DI}, B::LatticeMatrix{D,T2,AT2,NC1,1,nw,DI}) where {D,T1<:Real,T2<:Real,AT1,AT2,NC1,nw,DI}
32683268
s = JACC.parallel_reduce(prod(A.PN), +, kernel_dot_real_1,
3269-
A.A, B.A, A.PN, Val(NC1), Val(nw); init=zero(eltype(A.A)))
3269+
A.A, B.A, A.indexer, Val(NC1), Val(nw); init=zero(eltype(A.A)))
32703270
s = MPI.Allreduce(s, MPI.SUM, A.comm)
32713271
end
32723272

0 commit comments

Comments
 (0)