-
Notifications
You must be signed in to change notification settings - Fork 146
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
Vote: should we add Complex number support as a feature of ForwardDiff. #456
Comments
A summary of discussion in slack:
|
Hi, I am currently working on a project that requires autodiff with complex support (even for basic functions would be nice). I would greatly appreciate if this could be worked on in this repo. But, if this doesn't happen, I would also like to help out in the new repo. |
Of course everyone wants ForwardDiff to support complex numbers, but a vote doesn't fix the fundamental issues with the approach. The right thing to do is to fix the approach. I don't think everyone who uses ForwardDiff wants all other packages to have to recompile just because a few people needed complex support, and that's exactly what this would do. Anything that hit these dispatches on |
Or just make an AbstractComplex package for now with these dispatches and use it where you need it and call it a day. But putting something with these crazy side effects and maintenance issues into ForwardDiff to help on an edge case antithetical to the fact that this library is quite stable otherwise. |
Yeah, this is in fact a vote about
I haven't heard about this. I have rewriten complex valued functions in NiLang too, but haven't seen any problem of doing this.
I believe @huangq1234553 |
I believe the essential debate is about whether the package maintainer think complex number should be just available. This vote just reflects "how many people wants this feature eagerly,". In any case, I will support the maintainer's decision. Pytorch is closed ecosystem, but Julia is not, you have a lot ways to add a complex number patch :P. |
That's just a strawman and has nothing to do with what's being discussed. I want complex number support in ForwardDiff more than you do, therefore I want it done correctly and even led to the first issue about it #157 ? See this is going nowhere: the discussion is not whether to support it, it's how to support it. Looking at JuliaLang/julia#36030, complex ForwardDiff should already be supported on v1.6. So it's really just a question of backwards compatibility at this point. |
@ChrisRackauckas |
Handled by JuliaLang/julia#36030 |
ForwardDiff.jl
GenericComplex.jl
Related PR:
Related Issues:
sqrt
#324The text was updated successfully, but these errors were encountered: