-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
StackOverflowError on lgamma(::Float16) #131
Comments
Good catch. There isn't a method defined for @inline lgamma(x::Real) = lgamma(float(x)) which causes a stack overflow because it never ends up calling a more specific method. I see two potential courses of action here:
|
I think the second option is the best solution:
|
FWIW, what we generally do for math functions is:
No CPUs yet support So this would be:
|
Assuming
Float16
to be a valid type, if I run with Julia 1.0.2I get an unexpected
ERROR: StackOverflowError:
. IfFloat16
is instead not supported it should say it clearly.The text was updated successfully, but these errors were encountered: