Skip to content

Commit 90ffc02

Browse files
committed
Use dot(x, y) instead of adjoint(x) * y in _vecdot.
1 parent fefe5f3 commit 90ffc02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/linalg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ end
214214
@inbounds return similar_type(a, typeof(Signed(a[2]*b[3])-Signed(a[3]*b[2])))(((Signed(a[2]*b[3])-Signed(a[3]*b[2]), Signed(a[3]*b[1])-Signed(a[1]*b[3]), Signed(a[1]*b[2])-Signed(a[2]*b[1]))))
215215
end
216216

217-
@inline dot(a::StaticVector, b::StaticVector) = _vecdot(same_size(a, b), a, b, (x, y) -> adjoint(x) * y)
217+
@inline dot(a::StaticVector, b::StaticVector) = _vecdot(same_size(a, b), a, b, dot)
218218
@inline bilinear_vecdot(a::StaticArray, b::StaticArray) = _vecdot(same_size(a, b), a, b, *)
219219

220220
@inline function _vecdot(::Size{S}, a::StaticArray, b::StaticArray, product) where {S}

0 commit comments

Comments
 (0)