We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20dba29 commit 87aa60bCopy full SHA for 87aa60b
src/linalg.jl
@@ -302,7 +302,7 @@ end
302
303
@generated function dot(a::StaticVector, b::StaticVector)
304
if length(a) == length(b)
305
- expr = :(a[1] * b[1])
+ expr = :(conj(a[1]) * b[1])
306
for j = 2:length(a)
307
expr = :($expr + conj(a[$j]) * b[$j])
308
end
@@ -318,9 +318,9 @@ end
318
319
@generated function vecdot(a::StaticArray, b::StaticArray)
320
321
322
323
- expr = :($expr + a[$j] * b[$j])
+ expr = :($expr + conj(a[$j]) * b[$j])
324
325
326
return quote
0 commit comments