Skip to content

Commit 456cdea

Browse files
committed
Add isfinite
1 parent 7534749 commit 456cdea

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/methods.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const monadic = [deg2rad, rad2deg, transpose, asind, log1p, acsch,
1212
atand, sec, acscd, cot, exp2, expm1, atanh, gamma,
1313
loggamma, erf, erfc, erfcinv, erfi, erfcx, dawson, digamma,
1414
trigamma, invdigamma, polygamma, airyai, airyaiprime, airybi,
15-
airybiprime, besselj0, besselj1, bessely0, bessely1]
15+
airybiprime, besselj0, besselj1, bessely0, bessely1, isfinite]
1616

1717
const diadic = [max, min, hypot, atan, mod, rem, copysign,
1818
besselj, bessely, besseli, besselk, hankelh1, hankelh2,
@@ -78,6 +78,9 @@ function number_methods(T, rhs1, rhs2, options=nothing)
7878
for f in (skip_basics ? monadic : only_basics ? basic_monadic : vcat(basic_monadic, monadic))
7979
nameof(f) in skips && continue
8080
push!(exprs, :((f::$(typeof(f)))(a::$T) = $rhs1))
81+
if f === isfinite
82+
push!(exprs, :((f::$(typeof(f)))(a::$T) = true))
83+
end
8184
end
8285
push!(exprs, :(push!($previously_declared_for, $T)))
8386
Expr(:block, exprs...)

0 commit comments

Comments
 (0)