-
Notifications
You must be signed in to change notification settings - Fork 4
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
Possible to add log and exp support? #6
Comments
Ah, import Base.^
^(x::Number, ::Zero) = One()
^(x::Float16, ::Zero) = One()
^(x::Float32, ::Zero) = One()
^(x::Float64, ::Zero) = One()
^(x::BigFloat, ::Zero) = One()
^(x::AbstractFloat, ::Zero) = One()
^(x::Number, ::One) = x
^(x::Float16, ::One) = x
^(x::Float32, ::One) = x
^(x::BigFloat, ::One) = x
^(x::AbstractFloat, ::One) = x Would that be too much "fine-tuning" resp. too fragile? It would make things like |
Done.
|
Awesome, thanks!! |
Would it be possible to add
without causing unforseen trouble somewhere? If so, maybe
as well?
The text was updated successfully, but these errors were encountered: