Skip to content

Fix sign error and add basic graphing utilities#60

Merged
ZCG-coder merged 18 commits intomainfrom
develop
Jul 12, 2025
Merged

Fix sign error and add basic graphing utilities#60
ZCG-coder merged 18 commits intomainfrom
develop

Conversation

@ZCG-coder
Copy link
Owner

@ZCG-coder ZCG-coder commented Jul 11, 2025

This PR fixes #59, and adds the following features

  • Parameter class support. Enables calling functions with named arguments.
  • Preliminary graph support
  • Localized messages in mat2d

It fixes

  • Segmentation fault in add and subtract.

The following refactorings are used

  • Test files are grouped by component

Changelog

  • Add graphing functions

  • Add legends

  • Allow interpolation on graphs.

    • Using cubic interpolation and linear interpolation to allow graphing with fewer sample points.
  • [BREAKING] Fix constexpr errors.

    • [BREAKING] Switched ConsoleOutput::write to using std::string_view. std::string should be
      automatically passed as std::string_view.
  • Fixed more constexpr errors

  • Add Parameter support

  • Bug fixes to conPlot.

  • Fix std::any_cast errors.

  • Add better detection for Windows

    Signed-off-by: Andy Zhang z-c-ge@outlook.com

  • Added documentation and code refactoring

    • Move out conPlot and parameter.hpp definitions to .cpp files
    • Fix CMakeLists.txt to avoid duplicate builds
    • Add documentation to conPlot and parameter.hpp
  • Fix build errors

  • Refactoring: Test files are grouped by component

  • Add support for bar plots

  • Add shading support for simple curves

  • [Bug: Incorrect result in add in negative number inputs #59] Fix addition.

  • Fix segmentation fault in subtract.

  • Fix result issue for adding negative numbers

    • Fix wrong results for input like -1, 1
  • Add translations for mat2d

ZCG-coder added 17 commits June 30, 2025 16:04
- Using cubic interpolation and linear interpolation to allow graphing with fewer sample points.
- [BREAKING] Switched `ConsoleOutput::write` to using `std::string_view`. `std::string` should be
  automatically passed as `std::string_view`.
Signed-off-by: Andy Zhang <z-c-ge@outlook.com>
- Move out conPlot and parameter.hpp definitions to .cpp files
- Fix CMakeLists.txt to avoid duplicate builds
- Add documentation to conPlot and parameter.hpp
- Fix wrong results for input like -1, 1
@ZCG-coder ZCG-coder added this to the First Release milestone Jul 11, 2025
@ZCG-coder ZCG-coder self-assigned this Jul 11, 2025
@ZCG-coder ZCG-coder added T-Bug Type - Bug and unexpected behavior. T-Feature Type - New feature or request C-C++ Code - Pull requests that update C++ code. W-Critical Warning - Critical T-Improvement Type - Improvements to components. T-Translations Type - Translations for Steppable labels Jul 11, 2025
@ZCG-coder ZCG-coder requested a review from 813ethan July 11, 2025 13:54
@ZCG-coder ZCG-coder moved this from Todo to In progress in Steppable Jul 11, 2025
@ZCG-coder ZCG-coder merged commit 30ab0b8 into main Jul 12, 2025
52 checks passed
@github-project-automation github-project-automation bot moved this from In progress to Done in Steppable Jul 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-C++ Code - Pull requests that update C++ code. T-Bug Type - Bug and unexpected behavior. T-Feature Type - New feature or request T-Improvement Type - Improvements to components. T-Translations Type - Translations for Steppable W-Critical Warning - Critical

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Bug: Incorrect result in add in negative number inputs

1 participant