-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Using, std:: for standard library functions that does not have any.
#3629
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
Conversation
Signed-off-by: Omar Shrit <[email protected]>
Signed-off-by: Omar Shrit <[email protected]>
Signed-off-by: Omar Shrit <[email protected]>
Signed-off-by: Omar Shrit <[email protected]>
Signed-off-by: Omar Shrit <[email protected]>
Signed-off-by: Omar Shrit <[email protected]>
rcurtin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, there are actually fewer changes here than I was expecting. All my comments are pretty trivial. 👍
| { | ||
| const size_t n = static_cast<size_t> | ||
| (ceil((-1. + sqrt(1. + 8. * input.n_elem)) / 2.)); | ||
| (ceil((-1. + std::sqrt(1. + 8. * input.n_elem)) / 2.)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes had the same thing in some kernels
Co-authored-by: Ryan Curtin <[email protected]>
Co-authored-by: Ryan Curtin <[email protected]>
Co-authored-by: Ryan Curtin <[email protected]>
Co-authored-by: Ryan Curtin <[email protected]>
Co-authored-by: Ryan Curtin <[email protected]>
|
@rcurtin sometime to be honest we can leave it at 81 char per lines, unless if you are very strict about it and we should break after 80 cols |
Co-authored-by: Ryan Curtin <[email protected]>
Signed-off-by: Omar Shrit <[email protected]>
Signed-off-by: Omar Shrit <[email protected]>
Sorry, as you know, I am quite pedantic, and we should stick to 80 throughout 😄 I need to look into the style checks---they should catch these issues but right now they aren't. I just haven't had time to do it. |
Hi,
This PR added
std::for the standard library functions, mostly from cmath header.These functions are called without specifying the namespace which is causing a problem with the integration.