{"id":18091306,"url":"https://github.com/jamesetsmith/mtxio","last_synced_at":"2025-04-06T02:42:57.277Z","repository":{"id":167373708,"uuid":"620983512","full_name":"jamesETsmith/mtxio","owner":"jamesETsmith","description":"Matrix Market IO","archived":false,"fork":false,"pushed_at":"2023-06-30T00:02:02.000Z","size":119,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-12T08:55:25.042Z","etag":null,"topics":["matrix-market","openmp","parallel","sparse"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jamesETsmith.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-29T18:57:45.000Z","updated_at":"2023-06-30T14:07:51.000Z","dependencies_parsed_at":"2023-07-16T11:17:22.396Z","dependency_job_id":null,"html_url":"https://github.com/jamesETsmith/mtxio","commit_stats":null,"previous_names":["jamesetsmith/mmio","jamesetsmith/mtxio"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesETsmith%2Fmtxio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesETsmith%2Fmtxio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesETsmith%2Fmtxio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesETsmith%2Fmtxio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamesETsmith","download_url":"https://codeload.github.com/jamesETsmith/mtxio/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247426985,"owners_count":20937197,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["matrix-market","openmp","parallel","sparse"],"created_at":"2024-10-31T18:11:19.367Z","updated_at":"2025-04-06T02:42:57.257Z","avatar_url":"https://github.com/jamesETsmith.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Faster Parsing for Matrix Market\n[![build](https://github.com/jamesETsmith/mmio/actions/workflows/build.yaml/badge.svg)](https://github.com/jamesETsmith/mmio/actions/workflows/build.yaml)\n\nThere are several great C++ projects ([PIGO](https://github.com/GT-TDAlab/PIGO) and [fast_matrix_market](https://github.com/alugowski/fast_matrix_market)) for reading matrix market files faster in serial and parallel.\nHowever, GraphBLAS is written in ANSI C and I wanted to try and write a matrix market reader (and eventually writer) in C so it could be used side-by-side with GraphBLAS.\nThis is based heavily on the great C++ projects mentioned above and several of the utility functions are lifted almost verbatim from those projects.\n\n:warning: This project is pre-alpha and is currently unstable. Currently only reading matrix market coordinate files with doubles is supported. Please understand there will be breaking changes.\n\n## TODOs\n\nFeatures required to meet specification:\n\n- [ ] Object\n  - [X] matrix\n  - [ ] vector\n- [ ] Format\n  - [X] coordinate\n  - [ ] array\n- [ ] Fields\n  - [X] real\n  - [ ] complex\n  - [ ] integer\n  - [ ] pattern (i.e. no values)\n- [ ] Symmetry\n  - [X] general\n  - [ ] symmetric\n  - [ ] skew-symmetric\n  - [ ] hermitian\n\n- [ ] Feature: Add sanitizer checks to CI\n- [ ] Feature: handle inf, nan, etc\n- [ ] Feature: gracefully handle non-conformant/non-mtx files\n- [ ] Feature: add parallel write\n- [ ] Feature: Add proper CMake aliases (like `mtxio::mtxio`) to make it easier to integrate with other CMake projects\n- [ ] Feature: Clean up CMake default flags (maybe use CMake configurations?)\n- [ ] Performance: Improve parallel read performance, still slower than PIGO by 30-50%.\n\n## Prerequisites\n- C/C++ compiler\n- Python3 and SciPy (Optional, needed to make benchmarking data)\n\n## Build\n```\ngit@github.com:jamesETsmith/mtxio.git\ncd mtxio\nexport CPM_SOURCE_CACHE=$HOME/.cache/CPM # (optional)\ncmake -B build\ncmake --build build\nctest --test-dir build\n```\n\n## Benchmarking\n```\ncd data \u0026\u0026 python generate_data.py # May take a while\ncd ..\nperf stat -- env OMP_NUM_THREADS=12 ./build/bench/pigo_read data/n_15_0.3.mtx\nperf stat -- env OMP_NUM_THREADS=12 ./build/bench/mtxio_read data/n_15_0.3.mtx\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesetsmith%2Fmtxio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamesetsmith%2Fmtxio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesetsmith%2Fmtxio/lists"}