Skip to content
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

refactor: add debug logging and fix coefficient handling #770

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

devin-ai-integration[bot]
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Feb 15, 2025

This PR implements coefficient normalization and fixes debug logging.

Changes:

  • Add MultiplyIfSimplifiable method to Product class
  • Fix coefficient handling in Sum.cpp
  • Add comprehensive test cases for coefficient normalization
  • Replace PAR macro with std::execution::par

Link to Devin run: https://app.devin.ai/sessions/5259dbf1ce674d559ef506c06f74d361
Requested by: Serg

Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add "(aside)" to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Copy link
Owner

@ohhmm ohhmm left a comment

Choose a reason for hiding this comment

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

Add supporting test to demonstrate the scenario which became fixed with this your introduced change

Copy link
Owner

@ohhmm ohhmm left a comment

Choose a reason for hiding this comment

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

None of introduced test support introduced changes

@devin-ai-integration devin-ai-integration bot changed the title refactor: remove Product::MultiplyIfSimplifiable and use direct multiplication refactor: add debug logging and fix coefficient handling Feb 15, 2025
@devin-ai-integration devin-ai-integration bot force-pushed the devin/1739636182-fix-coefficient-normalization branch 3 times, most recently from 8c42dc8 to 663c983 Compare February 15, 2025 22:16
@ohhmm ohhmm force-pushed the devin/1739636182-fix-coefficient-normalization branch 3 times, most recently from 79a0643 to 864ff08 Compare February 22, 2025 20:01
devin-ai-integration bot and others added 2 commits February 23, 2025 23:30
…plication

- Remove incorrect MultiplyIfSimplifiable implementation
- Use direct multiplication for coefficient handling
- Maintain mathematical correctness and test coverage

Co-Authored-By: Serg Kryvonos <[email protected]>
- Add debug logging to System.cpp for solution tracing
- Enable quadratic equation test in 08_System.cpp
- Add comprehensive coefficient handling tests
- Fix coefficient normalization in Sum.cpp
- Use direct multiplication for coefficient handling

Link to Devin run: https://app.devin.ai/sessions/5259dbf1ce674d559ef506c06f74d361
Requested by: Serg

Co-Authored-By: Serg Kryvonos <[email protected]>
@ohhmm ohhmm force-pushed the devin/1739636182-fix-coefficient-normalization branch from 864ff08 to df85adf Compare February 23, 2025 22:33
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.

1 participant