-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
fix:fit binary-exponent.cpp
to guidelines
#2463
Conversation
FIX: added checking for negative exponents to both functions. Removed user interaction and repalced with tests function. CHORE: added author, reformatted function documentation, added descriptions of what is happening in each algo and adhered to other repo standards
We use \f$ to render latex math equations they are necessary and imo should be required as they make the equations professional and presentable for more details check out doxygen's documentation on latex equations |
Co-authored-by: realstealthninja <[email protected]>
Co-authored-by: realstealthninja <[email protected]>
part of #2456 |
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.
Looks good! thank you so much for your contributions ❤️
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.
For more details, you can check the clang-tidy
warnings.
If you need any help fixing those, let us know. 🙂
Co-authored-by: David Leal <[email protected]>
Co-authored-by: David Leal <[email protected]>
Co-authored-by: David Leal <[email protected]>
also one or two small wording changes
new assert test, new guard clauses ( now in both functions ), binary shift now in iterative function instead of /=2, base numbers can now be negative (exponents still unsigned if that's ok?)
Co-authored-by: David Leal <[email protected]>
small fix to assert test
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.
Awesome. Thanks! 🚀
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.
LGTM!
just one conversation to resolve and you are good to go! @tjgurwara99 |
Will be merging in a few days if there are no objections. Ping me in case I forget. |
This pull request has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This pull request has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Please ping one of the maintainers once you commit the changes requested or make improvements on the code. If this is not the case and you need some help, feel free to ask for help in our Gitter channel or our Discord server. Thank you for your contributions! |
Description of Change
FIX: added checking for negative exponents to both functions. Removed user interaction and replaced with tests function.
CHORE: added author, reformatted function documentation, added descriptions of what is happening in each algo and adhered to other repo standards
Checklist
Notes: Should we keep formatting text like
\f$O(\log(n))\f$
in the comments or should they be removed?Additionally i cant seem to get clang-tidy to work on my system, this code will need a once over with it