diff --git a/.github/workflows/matlab-ci.yml b/.github/workflows/matlab-ci.yml new file mode 100644 index 0000000..a9ba3d3 --- /dev/null +++ b/.github/workflows/matlab-ci.yml @@ -0,0 +1,45 @@ + +name: MATLAB CI + +on: + push: + branches: + - main + - 'release/**' + - 'refactor/**' + + pull_request: + branches: + - main + + workflow_dispatch: + +permissions: + contents: read + +jobs: + numerical-validation: + + name: Numerical Linear Algebra Tests + runs-on: ubuntu-latest + timeout-minutes: 30 + + steps: + + - name: Checkout repository + uses: actions/checkout@v7 + with: + persist-credentials: false + + - name: Set up MATLAB + uses: matlab-actions/setup-matlab@v3 + with: + release: R2025b + + - name: Run unit tests + uses: matlab-actions/run-tests@v3 + with: + source-folder: src + select-by-folder: tests + strict: true + output-detail: detailed diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..85bc36c --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,58 @@ + +# Changelog + +All notable changes to MATLAB Survival Toolbox +will be documented in this file. + +The project aims to follow Semantic Versioning. + +## [0.1.0] - Unreleased + +### Added + +- Modular numerical linear algebra module. +- Forward substitution solver. +- Backward substitution solver. +- Gaussian elimination with partial pivoting. +- Input validation and error handling. +- Six automated MATLAB unit tests. +- Reproducible linear system example. +- GitHub Actions continuous integration. +- Technical documentation for numerical methods. +- MATLAB-specific .gitignore configuration. + +### Changed + +- Modernized repository structure. +- Updated README documentation. +- Standardized function naming conventions. +- Established a development and release workflow. + +### Legacy + +- Preserved original academic MATLAB scripts + under the legacy/ directory. + +### Known Limitations + +- Educational and research use only. +- No formal numerical stability guarantees. +- No condition number diagnostics. +- Limited test coverage. +- Not certified for safety-critical engineering + applications. + +## Future Development + +### v0.2.0 — Nonlinear Equations + +- Bisection method. +- Newton-Raphson method. +- Secant method. +- Review of the legacy Whittaker implementation. + +### v0.3.0 — Numerical Approximation + +- Polynomial interpolation. +- Taylor series. +- Numerical differentiation and integration. diff --git a/SECURITY.md b/SECURITY.md index 034e848..25919cc 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -1,21 +1,59 @@ + # Security Policy ## Supported Versions -Use this section to tell people about which versions of your project are -currently being supported with security updates. +MATLAB Survival Toolbox is an independently maintained +educational open-source project. + +Security maintenance is provided on a best-effort basis. -| Version | Supported | -| ------- | ------------------ | -| 5.1.x | :white_check_mark: | -| 5.0.x | :x: | -| 4.0.x | :white_check_mark: | -| < 4.0 | :x: | +| Version | Supported | +|---|---| +| 0.1.x | Yes | +| Legacy implementations | No | ## Reporting a Vulnerability -Use this section to tell people how to report a vulnerability. +Please report security vulnerabilities privately +using GitHub Private Vulnerability Reporting. + +Do not disclose sensitive security issues through +public GitHub Issues. + +A vulnerability report should include: + +- Description of the security issue. +- Affected version or commit. +- Steps required to reproduce it. +- Potential security impact. +- Suggested mitigation, if available. + +Reports will be reviewed on a best-effort basis. + +No guaranteed response or remediation time is provided. + +## Numerical Correctness + +Numerical inaccuracies and algorithmic defects +should normally be reported through GitHub Issues. + +If a numerical defect also creates a security risk, +please use private vulnerability reporting. + +## Engineering Disclaimer + +This software is intended for educational and +research purposes. + +It is not certified for production, industrial, +structural or safety-critical engineering applications. + +All numerical results must be independently verified +before being used in real engineering projects. + +## Responsible Disclosure -Tell them where to go, how often they can expect to get an update on a -reported vulnerability, what to expect if the vulnerability is accepted or -declined, etc. +Please allow a reasonable opportunity to investigate +and resolve reported vulnerabilities before +public disclosure. diff --git a/docs/linear_algebra.md b/docs/linear_algebra.md new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/docs/linear_algebra.md @@ -0,0 +1 @@ +