File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
name = " Distances"
2
2
uuid = " b4f34e82-e78d-54a5-968a-f98e89d6e8f7"
3
- version = " 0.10.7 "
3
+ version = " 0.10.8 "
4
4
5
5
[deps ]
6
6
LinearAlgebra = " 37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Original file line number Diff line number Diff line change 34
34
end
35
35
return sqab, asum, bsum
36
36
end
37
- @inline function _bhattacharyya_coeff (a:: AbstractVector{Ta} , b:: AbstractVector{Tb} ) where {Ta <: Number ,Tb <: Number }
38
- T = typeof (sqrt (oneunit (Ta) * oneunit (Tb )))
37
+ @inline function _bhattacharyya_coeff (a:: AbstractVector , b:: AbstractVector )
38
+ T = typeof (sqrt (oneunit (eltype (a)) * oneunit (eltype (b) )))
39
39
sqab = zero (T)
40
- asum = zero (Ta )
41
- bsum = zero (Tb )
40
+ asum = zero (eltype (a) )
41
+ bsum = zero (eltype (b) )
42
42
43
43
@simd for i in eachindex (a, b)
44
44
@inbounds ai = a[i]
50
50
return sqab, asum, bsum
51
51
end
52
52
53
- @inline function _bhattacharyya_coeff (a:: SparseVectorUnion{<:Number} , b:: SparseVectorUnion{<:Number} )
53
+ @inline function _bhattacharyya_coeff (a:: SparseVectorUnion , b:: SparseVectorUnion )
54
54
anzind = nonzeroinds (a)
55
55
bnzind = nonzeroinds (b)
56
56
anzval = nonzeros (a)
You can’t perform that action at this time.
0 commit comments