-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Make complex sin and cos type stable #13539
Conversation
Would it be too much to add an specialization for |
Could use a few |
@tkelman Done |
Performance? (This is why I didn't go ahead and implement that). See my benchmark result here Depending on the machine I use, I can see on average |
@yuyichao What do you think of this solution? |
LGTM as long as there I've also noticed that the speed up I've seen for the It's probably better to benchmark different versions and pick the best one. |
Hmm, maybe it would be more generic to reverse things and have the generic version check for infinity and nan and an int-specialized version bypass those checks. |
c0eb095
to
0792585
Compare
Alright, this is g2g. |
Make complex sin and cos type stable
cf #11839