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 2234d4f commit a6159e1Copy full SHA for a6159e1
src/distances/dotproduct.jl
@@ -1,7 +1,7 @@
1
struct DotProduct <: Distances.PreMetric end
2
# struct DotProduct <: Distances.UnionSemiMetric end
3
4
-@inline function Distances._evaluate(::DotProduct, a::AbstractVector{T}, b::AbstractVector{T}) where {T}
+@inline function Distances._evaluate(::DotProduct, a::AbstractVector, b::AbstractVector)
5
@boundscheck if length(a) != length(b)
6
throw(DimensionMismatch("first array has length $(length(a)) which does not match the length of the second, $(length(b))."))
7
end
0 commit comments