Skip to content

Commit 05736a7

Browse files
authored
Fix ambiguity of LinearAlgebra.dot (#2569)
1 parent 6bdb146 commit 05736a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cublas/linalg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function LinearAlgebra.dot(x::StridedCuVector{T},
2828
end
2929

3030
# resolve ambiguities with generic wrapper below
31-
LinearAlgebra.dot(x::CuArray{T}, y::CuArray{T}) where T<:Union{Float32, Float64} =
31+
LinearAlgebra.dot(x::CuArray{T}, y::CuArray{T}) where T<:Union{Float32, Float64, ComplexF32, ComplexF64} =
3232
invoke(LinearAlgebra.dot, Tuple{StridedCuArray{T}, StridedCuArray{T}}, x, y)
3333

3434
# generic fallback

0 commit comments

Comments
 (0)