[Sparse_Matrix] Add a runnable example that solves a Matrix Market system end to end
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 68/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- cmake, cpp
- Ambito
- developer-experience, testing
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- C++
- Stelle
- 2
- Fork
- 1
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ibra-kdbra/Math-Problems
-
area: security-algorithms priority: P1 size: XS type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
ibra-kdbra/Math-Problems#417 ·
-
area: math-chaos priority: P3 size: S type: enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
ibra-kdbra/Math-Problems#397 ·
-
area: docs-site good first issue priority: P3 size: XS type: chore
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
ibra-kdbra/Math-Problems#379 ·
-
area: docs-site good first issue priority: P3 size: XS type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
ibra-kdbra/Math-Problems#378 ·
-
area: docs-site good first issue priority: P2 size: XS type: chore
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
ibra-kdbra/Math-Problems#367 ·
Tutte le issue di ibra-kdbra/Math-Problems
Issue simili
-
TransformInteract: a circle drag through the centre sets Scale to its minimum, which can't grow backApertadifficulty:easy prio:low type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
NatronGitHub/openfx-supportext#311 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
CachyOS/packageinstaller#211 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
OpenEmu-Silicon/OpenEmu-Silicon#920 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100