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.
NaNMath.pow
@number_methods
1 parent 79da1be commit 3f6a0d8Copy full SHA for 3f6a0d8
src/methods.jl
@@ -80,7 +80,7 @@ function number_methods(T, rhs1, rhs2, options=nothing)
80
81
# Fix method ambiguity error on NaNMath >= 1.0.2 and promotion of `Integer`s on NaNMath < 1.0.2
82
if f === NaNMath.pow
83
- push!(exprs, :((f::$(typeof(f)))(a::$T, b::Integer) = ($assert_like(f, Number, a); $term($(^), a, b))))
+ push!(exprs, :((f::$(typeof(f)))(a::$T, b::Integer) = a ^ b))
84
end
85
86
0 commit comments