Skip to content

Commit 658696b

Browse files
abussyniklasschmitz
authored andcommitted
Fix inconsistency between CPU and GPU in LOBPCG (#1120)
1 parent 861e0c9 commit 658696b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/eigen/linalg.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ end
55

66
# Returns a vector of dot(A[:, i], B[:, i]), for all columns of A, B
77
@views function columnwise_dots(A::AbstractArray{T}, B::AbstractArray{T}) where {T}
8-
[real(dot(A[:, i], B[:, i])) for i = 1:size(A, 2)]
8+
[dot(A[:, i], B[:, i]) for i = 1:size(A, 2)]
99
end
1010

11-
# Returns a vector of real(dot(A[:, i], M, B[:, i])), for all columns of
11+
# Returns a vector of dot(A[:, i], M, B[:, i]), for all columns of
1212
# A, B, and matrix M
1313
@views function columnwise_dots(A::AbstractArray{T}, M, B::AbstractArray{T}) where {T}
14-
[real(dot(A[:, i], M, B[:, i])) for i = 1:size(A, 2)]
14+
[dot(A[:, i], M, B[:, i]) for i = 1:size(A, 2)]
1515
end

0 commit comments

Comments
 (0)