Skip to content

chore: add new structure - #113

Merged
gabrielfrasantos merged 3 commits into
mainfrom
feature/refactor-structure
Mar 25, 2026
Merged

gabrielfrasantos merged 3 commits into
mainfrom
feature/refactor-structure

Conversation

@gabrielfrasantos

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

github-actions Bot commented Mar 25, 2026 •

Copy link
Copy Markdown
Contributor

✅⚠️MegaLinter analysis: Success with warnings

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ ACTION actionlint 6 0 0 0.08s
✅ CPP clang-format 243 5 0 0 1.23s
✅ CPP cppcheck 243 0 0 10.61s
✅ DOCKERFILE hadolint 1 0 0 0.09s
✅ JSON jsonlint 8 0 0 0.42s
✅ JSON prettier 8 8 0 0 0.7s
⚠️ MARKDOWN markdownlint 51 1 30 0 3.11s
✅ MARKDOWN markdown-table-formatter 51 18 0 0 0.32s
⚠️ SPELL lychee 146 31 0 2.25s
✅ YAML prettier 13 6 0 0 1.02s
✅ YAML yamllint 13 0 0 0.77s

Detailed Issues

⚠️ SPELL / lychee - 31 errors
[IGNORED] url.https://github.com/.insteadOf | Unsupported: Error creating request client: builder error for url (url.https://github.com/.insteadOf)
[ERROR] file://doc/filters/solvers/DiscreteAlgebraicRiccatiEquation.md | Cannot find file
[ERROR] file://doc/filters/controllers/Pid.md | Cannot find file
[ERROR] file://doc/filters/controllers/Lqr.md | Cannot find file
[ERROR] file://doc/math/Geometry3D.md | Cannot find file
[ERROR] file://doc/losses/Loss.md | Cannot find file
[ERROR] file://doc/model/Model.md | Cannot find file
[ERROR] file://doc/NeuralNetwork.md | Cannot find file
[ERROR] file://estimators/LinearRegression.md | Cannot find file
[ERROR] file://doc/optimizer/Optimizer.md | Cannot find file
[ERROR] file://estimators/LinearRegression.md | Cannot find file
[ERROR] file://doc/losses/Loss.md | Cannot find file
[ERROR] https://gitlab-ci-token/ | Network error: error sending request for url (https://gitlab-ci-token/) Maybe a certificate error?
[403] https://gitlab.com/embedded-library/infrastructure/hal-st.git | Network error: Forbidden
[403] https://gitlab.com/embedded-library/infrastructure/embedded-infra-lib.git | Network error: Forbidden
[403] https://developer.arm.com/documentation/100166/latest/ | Network error: Forbidden
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/27 | Network error: Not Found
[403] https://developer.arm.com/documentation/dui0473/latest | Network error: Forbidden
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/15 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/9 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/26 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/2 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/1 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/24 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/7 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/13 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/3 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/18 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/4 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/6 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/12 | Network error: Not Found
[403] https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$ | Network error: Forbidden
📝 Summary
---------------------
🔍 Total..........224
✅ Successful.....184
⏳ Timeouts.........0
🔀 Redirected.......0
👻 Excluded.........8
❓ Unknown..........0
🚫 Errors..........31

Errors in doc/kinematics/ForwardKinematics.md
[ERROR] file://doc/math/Geometry3D.md | Cannot find file

Errors in .github/workflows/static-analysis.yml
[403] https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$ | Network error: Forbidden

Errors in CHANGELOG.md
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/3 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/12 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/26 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/13 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/15 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/1 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/18 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/4 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/6 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/2 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/27 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/24 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/9 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/7 | Network error: Not Found

Errors in doc/optimization/Optimizer.md
[ERROR] file://doc/NeuralNetwork.md | Cannot find file
[ERROR] file://estimators/LinearRegression.md | Cannot find file
[ERROR] file://doc/losses/Loss.md | Cannot find file
[ERROR] file://doc/model/Model.md | Cannot find file

Errors in doc/regularization/Regularization.md
[ERROR] file://doc/optimizer/Optimizer.md | Cannot find file
[ERROR] file://estimators/LinearRegression.md | Cannot find file
[ERROR] file://doc/losses/Loss.md | Cannot find file

Errors in .gitlab-ci.yml
[ERROR] https://gitlab-ci-token/ | Network error: error sending request for url (https://gitlab-ci-token/) Maybe a certificate error?
[403] https://gitlab.com/embedded-library/infrastructure/hal-st.git | Network error: Forbidden
[403] https://gitlab.com/embedded-library/infrastructure/embedded-infra-lib.git | Network error: Forbidden

Errors in doc/filters/active/KalmanFilter.md
[ERROR] file://doc/filters/controllers/Pid.md | Cannot find file
[ERROR] file://doc/filters/controllers/Lqr.md | Cannot find file
[ERROR] file://doc/filters/solvers/DiscreteAlgebraicRiccatiEquation.md | Cannot find file

Errors in doc/performance-optimization/README.md
[403] https://developer.arm.com/documentation/100166/latest/ | Network error: Forbidden
[403] https://developer.arm.com/documentation/dui0473/latest | Network error: Forbidden
⚠️ MARKDOWN / markdownlint - 30 errors
CHANGELOG.md:29 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "Features"]
CHANGELOG.md:45 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "Bug Fixes"]
doc/analysis/PowerDensitySpectrum.md:5:401 error MD013/line-length Line length [Expected: 400; Actual: 509]
doc/analysis/PowerDensitySpectrum.md:104:20 error MD056/table-column-count Table column count [Expected: 2; Actual: 6; Too many cells, extra data will be missing]
doc/analysis/PowerDensitySpectrum.md:104:17 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
doc/analysis/PowerDensitySpectrum.md:104:20 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
doc/analysis/PowerDensitySpectrum.md:104:32 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
doc/analysis/PowerDensitySpectrum.md:104:38 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
doc/analysis/PowerDensitySpectrum.md:104:45 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
doc/analysis/PowerDensitySpectrum.md:104:135 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
doc/control_analysis/FrequencyResponse.md:5:401 error MD013/line-length Line length [Expected: 400; Actual: 469]
doc/control_analysis/RootLocus.md:69 error MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
doc/control_analysis/RootLocus.md:113:13 error MD060/table-column-style Table column style [Table pipe is missing space to the left for style "compact"]
doc/control_analysis/RootLocus.md:113:27 error MD060/table-column-style Table column style [Table pipe is missing space to the left for style "compact"]
doc/control_analysis/RootLocus.md:113:1 error MD060/table-column-style Table column style [Table pipe is missing space to the right for style "compact"]
doc/control_analysis/RootLocus.md:113:13 error MD060/table-column-style Table column style [Table pipe is missing space to the right for style "compact"]
doc/filters/active/UnscentedKalmanFilter.md:11:401 error MD013/line-length Line length [Expected: 400; Actual: 468]
doc/neural_network/model/Model.md:147:63 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
doc/neural_network/model/Model.md:147:156 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
doc/neural_network/model/Model.md:148:60 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
doc/neural_network/model/Model.md:148:153 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
doc/regularization/Regularization.md:100:32 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
doc/regularization/Regularization.md:100:135 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
doc/windowing/window.md:5:401 error MD013/line-length Line length [Expected: 400; Actual: 415]
README.md:1 error MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "[![Quality Gate Status](https:..."]
README.md:9:401 error MD013/line-length Line length [Expected: 400; Actual: 442]
README.md:19:142 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
README.md:20:142 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
README.md:23:147 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
README.md:28:140 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]

See detailed reports in MegaLinter artifacts

Your project could benefit from a custom flavor, which would allow you to run only the linters you need, and thus improve runtime performances. (Skip this info by defining FLAVOR_SUGGESTIONS: false)

  • Documentation: Custom Flavors
  • Command: npx mega-linter-runner@9.4.0 --custom-flavor-setup --custom-flavor-linters ACTION_ACTIONLINT,CPP_CPPCHECK,CPP_CLANG_FORMAT,DOCKERFILE_HADOLINT,JSON_JSONLINT,JSON_PRETTIER,MARKDOWN_MARKDOWNLINT,MARKDOWN_MARKDOWN_TABLE_FORMATTER,SPELL_LYCHEE,YAML_PRETTIER,YAML_YAMLLINT

MegaLinter is graciously provided by OX Security
Show us your support by starring ⭐ the repository

Comment thread README.md Resolved
Comment thread README.md Resolved
Comment thread doc/neural_network/README.md Resolved
Comment thread doc/neural_network/model/Model.md Resolved
gabrielfrasantos and others added 2 commits March 25, 2026 01:05
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR reorganizes several numerical toolbox components into new domains/subdomains (control analysis, optimization, regularization, estimator offline/online split, and analysis windowing), updating includes, CMake targets, tests, and documentation to match the new structure.

Changes:

  • Moved Frequency Response + Root Locus into numerical/control_analysis and updated simulator + tests accordingly.
  • Moved Windowing under numerical/analysis/windowing and updated analysis/simulator consumers and build targets.
  • Extracted optimizers and regularization from numerical/neural_network/* into numerical/optimization and numerical/regularization, plus restructured numerical/estimators into offline/ and online/.

Reviewed changes

Copilot reviewed 84 out of 94 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
simulator/controllers/PidController/application/PidSimulator.cpp Switches include paths and namespaces to control_analysis::*.
simulator/controllers/PidController/application/CMakeLists.txt Links PID simulator application with numerical.control_analysis.
simulator/analysis/PowerDensitySpectrum/application/PsdSimulator.cpp Updates Windowing include path to analysis subdomain.
simulator/analysis/PowerDensitySpectrum/application/CMakeLists.txt Links PSD simulator application with numerical.analysis.windowing.
simulator/analysis/FastFourierTransform/application/FftSimulator.cpp Updates Windowing include path to analysis subdomain.
simulator/analysis/FastFourierTransform/application/CMakeLists.txt Links FFT simulator application with numerical.analysis.windowing.
numerical/windowing/test/CMakeLists.txt Removes old standalone windowing test target.
numerical/windowing/CMakeLists.txt Removes old standalone windowing library target.
numerical/regularization/test/TestL2.cpp Updates includes/namespaces to regularization::*.
numerical/regularization/test/TestL1.cpp Updates includes/namespaces to regularization::*.
numerical/regularization/test/CMakeLists.txt Adds new regularization test target.
numerical/regularization/Regularization.hpp Moves Regularization base to regularization namespace.
numerical/regularization/L2.hpp Moves L2 regularizer header to new location/namespace.
numerical/regularization/L2.cpp Updates explicit instantiation file path/namespace.
numerical/regularization/L1.hpp Moves L1 regularizer header to new location/namespace.
numerical/regularization/L1.cpp Updates explicit instantiation file path/namespace.
numerical/regularization/CMakeLists.txt Adds new numerical.regularization target and coverage instantiations.
numerical/optimization/test/TestGradientDescent.cpp Updates include paths/namespaces to optimization::*.
numerical/optimization/test/CMakeLists.txt Adds new optimization test target.
numerical/optimization/Optimizer.hpp Moves Optimizer interface to optimization namespace (still consumes neural_network::Loss).
numerical/optimization/GradientDescent.hpp Moves GradientDescent implementation to optimization namespace.
numerical/optimization/GradientDescent.cpp Updates explicit instantiation file path/namespace.
numerical/optimization/CMakeLists.txt Adds new numerical.optimization target and coverage instantiations.
numerical/neural_network/regularization/test/CMakeLists.txt Removes old neural-network-local regularization test target.
numerical/neural_network/regularization/CMakeLists.txt Removes old neural-network-local regularization library target.
numerical/neural_network/optimizer/test/CMakeLists.txt Removes old neural-network-local optimizer test target.
numerical/neural_network/optimizer/CMakeLists.txt Removes old neural-network-local optimizer library target.
numerical/neural_network/model/Model.hpp Updates model to depend on optimization::Optimizer (new domain).
numerical/neural_network/model/CMakeLists.txt Links neural network model against numerical.optimization.
numerical/neural_network/losses/test/TestMeanSquaredError.cpp Updates tests to use regularization::Regularization.
numerical/neural_network/losses/test/TestMeanAbsoluteError.cpp Updates tests to use regularization::Regularization.
numerical/neural_network/losses/test/TestCategoricalCrossEntropy.cpp Updates tests to use regularization::Regularization.
numerical/neural_network/losses/test/TestBinaryCrossEntropy.cpp Updates tests to use regularization::Regularization.
numerical/neural_network/losses/MeanSquaredError.hpp Updates includes/types to use regularization::Regularization.
numerical/neural_network/losses/MeanAbsoluteError.hpp Updates includes/types to use regularization::Regularization.
numerical/neural_network/losses/CategoricalCrossEntropy.hpp Updates includes/types to use regularization::Regularization.
numerical/neural_network/losses/CMakeLists.txt Links loss library against numerical.regularization.
numerical/neural_network/losses/BinaryCrossEntropy.hpp Updates includes/types to use regularization::Regularization.
numerical/neural_network/layer/test/TestDense.cpp Updates optimizer dependency to optimization::Optimizer.
numerical/neural_network/CMakeLists.txt Stops adding removed neural-network-local optimizer/regularization subdirs.
numerical/estimators/test/CMakeLists.txt Removes old combined estimators test target.
numerical/estimators/online/test/TestRecursiveLeastSquares.cpp Updates include path for RecursiveLeastSquares (online).
numerical/estimators/online/test/CMakeLists.txt Adds new online estimators test target.
numerical/estimators/online/RecursiveLeastSquares.hpp Introduces online RecursiveLeastSquares estimator.
numerical/estimators/online/RecursiveLeastSquares.cpp Updates explicit instantiation include path.
numerical/estimators/online/CMakeLists.txt Adds numerical.estimators.online target and coverage instantiations.
numerical/estimators/offline/test/TestYuleWalker.cpp Updates include path for YuleWalker (offline).
numerical/estimators/offline/test/TestLinearRegression.cpp Updates include path for LinearRegression (offline).
numerical/estimators/offline/test/CMakeLists.txt Adds new offline estimators test target.
numerical/estimators/offline/YuleWalker.hpp Introduces offline YuleWalker estimator header in new location.
numerical/estimators/offline/YuleWalker.cpp Updates explicit instantiation include path.
numerical/estimators/offline/LinearRegression.hpp Introduces offline LinearRegression estimator header in new location.
numerical/estimators/offline/LinearRegression.cpp Updates explicit instantiation include path.
numerical/estimators/offline/CMakeLists.txt Adds numerical.estimators.offline target and coverage instantiations.
numerical/estimators/CMakeLists.txt Converts estimators to offline/ + online/ subdirectories.
numerical/control_analysis/test/TestRootLocus.cpp Updates tests to use control_analysis::* and new include path.
numerical/control_analysis/test/TestFrequencyResponse.cpp Updates tests to use control_analysis::* and new include path.
numerical/control_analysis/test/CMakeLists.txt Adds new control analysis test target.
numerical/control_analysis/RootLocus.hpp Moves RootLocus to control_analysis namespace.
numerical/control_analysis/RootLocus.cpp Adds explicit instantiation for RootLocus under new domain.
numerical/control_analysis/FrequencyResponse.hpp Moves FrequencyResponse to control_analysis namespace.
numerical/control_analysis/FrequencyResponse.cpp Updates include/namespace and instantiations for new domain.
numerical/control_analysis/CMakeLists.txt Adds numerical.control_analysis target and coverage instantiations.
numerical/analysis/windowing/test/TestWindowing.cpp Updates tests to new windowing header path.
numerical/analysis/windowing/test/CMakeLists.txt Adds new analysis.windowing test target.
numerical/analysis/windowing/Windowing.hpp Adds/moves windowing API under analysis subdomain.
numerical/analysis/windowing/Windowing.cpp Updates include path for moved windowing implementation.
numerical/analysis/windowing/CMakeLists.txt Adds numerical.analysis.windowing target and coverage instantiations.
numerical/analysis/test/PowerDensitySpectrumTestSupport.hpp Updates windowing include path for PSD test support.
numerical/analysis/test/CMakeLists.txt Removes control-analysis-related tests from analysis test target.
numerical/analysis/RootLocus.cpp Removes old RootLocus instantiation from analysis domain.
numerical/analysis/PowerDensitySpectrum.hpp Updates windowing include to new analysis subdomain.
numerical/analysis/CMakeLists.txt Updates analysis target deps and adds windowing subdir.
numerical/CMakeLists.txt Adds new subdirectories: control_analysis, optimization, regularization; removes old windowing.
doc/windowing/README.md Reframes windowing docs as part of the Analysis domain.
doc/solvers/DurandKerner.md Updates Root Locus doc links to new control_analysis location.
doc/regularization/RegularizationMethods.svg Adds regularization illustration asset.
doc/regularization/Regularization.md Adds regularization theory and usage documentation.
doc/regularization/README.md Adds regularization domain README.
doc/optimization/README.md Adds optimization domain README.
doc/optimization/Optimizer.md Adds gradient descent optimizer documentation.
doc/optimization/OptimizationMethods.svg Adds optimization illustration asset.
doc/neural_network/model/Model.md Updates optimizer/regularization doc links to new domains.
doc/neural_network/losses/Loss.md Updates optimizer/regularization doc links to new domains.
doc/neural_network/layer/Layer.md Updates optimizer doc link to new domain.
doc/neural_network/README.md Updates neural network landing page to reference new domains.
doc/neural_network/NeuralNetwork.md Updates optimizer/regularization doc links to new domains.
doc/estimators/README.md Splits estimator docs into offline vs online sections.
doc/control_analysis/RootLocus.md Adds Root Locus documentation under new domain.
doc/control_analysis/README.md Adds control analysis domain README.
doc/control_analysis/FrequencyResponse.md Adds Frequency Response documentation under new domain.
doc/analysis/README.md Removes control analysis items and adds windowing subdomain entry.
README.md Updates top-level category table to reflect new domains and reorganized content.
.github/copilot-instructions.md Updates repository-structure documentation to match new domains/subdomains.

Comment thread numerical/analysis/CMakeLists.txt Resolved
@gabrielfrasantos gabrielfrasantos linked an issue Mar 25, 2026 that may be closed by this pull request
@sonarqubecloud

Copy link
Copy Markdown

@gabrielfrasantos
gabrielfrasantos merged commit fca4c0d into main Mar 25, 2026
9 checks passed
@gabrielfrasantos
gabrielfrasantos deleted the feature/refactor-structure branch March 25, 2026 00:11
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.

chore: double check domain and create subdomains if needed

2 participants