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 c4431c0 commit 068e55bCopy full SHA for 068e55b
src/metrics.jl
@@ -72,7 +72,7 @@ struct RenyiDivergence{T <: Real} <: PreMetric
72
is_one::Bool
73
is_inf::Bool
74
75
- function (::Type{RenyiDivergence{T}})(q) where {T}
+ function RenyiDivergence{T}(q) where {T}
76
# There are four different cases:
77
# simpler to separate them out now, not over and over in eval_op()
78
is_zero = q ≈ zero(T)
0 commit comments