Skip to content

Conversation

@shrit
Copy link
Member

@shrit shrit commented Feb 22, 2024

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.

Copy link
Member

@rcurtin rcurtin left a 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.));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just as a note, once #3615 is merged, this file won't exist anymore and so there will be a merge conflict. I am pretty sure if git tries to re-add this file, RandVector() and Smat() are removed by #3615 anyway, so you can just remove whatever git is trying to do. 👍

Copy link
Member Author

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

@shrit
Copy link
Member Author

shrit commented Feb 24, 2024

@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

@rcurtin
Copy link
Member

rcurtin commented Feb 24, 2024

@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

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.

This was referenced May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants