[Sparse_Matrix] Add a runnable example that solves a Matrix Market system end to end
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 68/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- cmake, cpp
- Domain
- developer-experience, testing
Research direction
Start with Sparse_Matrix/CMakeLists.txt and the test assets in Sparse_Matrix/test/assets/; check how existing test executables are built and how the library loads Matrix Market files. Build the requested examples/solve_mtx.cpp target with the solver options and output described in the issue, then verify the stated command converges and prints the residual and that CI builds the example.
Written by the indexing model from the issue text.
Description
Summary
The library has no example program, so the only usage documentation is the README snippets, which don't compile (see the README issue). A small CLI would double as a smoke test and a docs-site demo.
Location
Sparse_Matrix/CMakeLists.txtSparse_Matrix/test/assets/
Evidence
find Sparse_Matrix -name '*example*' is empty; the only executables are under test/.
Expected
An examples/solve_mtx.cpp target: load a .mtx, pick a solver/preconditioner, print iterations, residual and timing.
Proposed fix
Add option(SMM_WITH_EXAMPLES), an example using SMM::loadMatrix, BiCGStab + SGS/ILU0 and ConjugateGradient + IC0; reference it from both READMEs. Optionally add a relative-residual (||r||/||b||) stopping mode, since the current absolute L2 criterion depends on problem scale.
Acceptance criteria
-
./solve_mtx test/assets/mesh1e1_structural_48_48_177.mtx --solver cgconverges and prints the residual - Example is built in CI
Repository audit, November 2026 · Phase 9 · New features · evidence: found by code reading · ref core-cpp-045
Generated by Claude Code
- Dominant language
- C++
- Stars
- 2
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ibra-kdbra/Math-Problems
-
area: security-algorithms priority: P1 size: XS type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
ibra-kdbra/Math-Problems#417 ·
-
area: math-chaos priority: P3 size: S type: enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ibra-kdbra/Math-Problems#397 ·
-
area: docs-site good first issue priority: P3 size: XS type: chore
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
ibra-kdbra/Math-Problems#379 ·
-
area: docs-site good first issue priority: P3 size: XS type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
ibra-kdbra/Math-Problems#378 ·
-
area: docs-site good first issue priority: P2 size: XS type: chore
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ibra-kdbra/Math-Problems#367 ·
All issues in ibra-kdbra/Math-Problems
Similar issues
-
TransformInteract: a circle drag through the centre sets Scale to its minimum, which can't grow backOpendifficulty:easy prio:low type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NatronGitHub/openfx-supportext#311 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
CachyOS/packageinstaller#211 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
OpenEmu-Silicon/OpenEmu-Silicon#920 · 1 comment ·
Maintainers usually reply within 1 day
-
Good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 65/100