{"id":20510229,"url":"https://github.com/bmc-labs/matiopp","last_synced_at":"2026-05-15T13:01:54.784Z","repository":{"id":237404748,"uuid":"197602467","full_name":"bmc-labs/matiopp","owner":"bmc-labs","description":"C++ wrapper for matio - Read Only (for now)","archived":false,"fork":false,"pushed_at":"2019-12-14T20:15:24.000Z","size":1802,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-22T03:07:33.462Z","etag":null,"topics":["cpp","library","matio"],"latest_commit_sha":null,"homepage":"","language":"Objective-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/bmc-labs.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":"2019-07-18T14:27:05.000Z","updated_at":"2025-09-27T09:18:15.000Z","dependencies_parsed_at":"2024-05-01T10:14:32.561Z","dependency_job_id":null,"html_url":"https://github.com/bmc-labs/matiopp","commit_stats":null,"previous_names":["bmc-labs/matiopp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bmc-labs/matiopp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmc-labs%2Fmatiopp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmc-labs%2Fmatiopp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmc-labs%2Fmatiopp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmc-labs%2Fmatiopp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bmc-labs","download_url":"https://codeload.github.com/bmc-labs/matiopp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmc-labs%2Fmatiopp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33067476,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cpp","library","matio"],"created_at":"2024-11-15T20:28:38.392Z","updated_at":"2026-05-15T13:01:54.751Z","avatar_url":"https://github.com/bmc-labs.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"`matiopp`\n---\n\n... is a thin, header-only C++ wrapper for matio..\n\n\nMain features\n==\n\n- modern C++ semantics implemented: all the allocation and freeing of memory\n  happens via constructor and smart pointers\n- uses `boost.regex` to filter for channels/columns/vectors/whatever you want\n  to call them\n- uses exceptions to gracefully handle things\n- is really drop-in and use; makes you feel like C++ is Python (except thanks\n  to `matio` you can use one solution for all versions of mat files)\n\n\n\nUsage\n==\nHave a look at the tests, ideally, but it's all meant to work as simple as:\n\n```c++\n//\n// create bmc::mat object\n//\nbmc::mat my_data{filename /* std::string */, channel_regex /* std::string */};\n\nauto no_of_channels = my_data.number_of_channels();\n\nauto temp_sensor = my_data.at(\"temp_sensor\");  // or my_data[\"temp_sensor\"]\n\nfor (const auto \u0026 it : my_data) {\n  // do something with the channel\n}\n\nif (my_data.find(\"pressure\") != my_data.end()) {\n  std::cout \u003c\u003c \"pressure column found\" \u003c\u003c '\\n';\n}\n\nauto size_of_columns = my_data.size();\n\nif (my_data.empty()) {\n  std::cout \u003c\u003c \"no data found in file\" \u003c\u003c '\\n';\n}\n```\n\nThe regex string is optional; you can leave it empty to just load everything.\n\nData is returned as `std::vector\u003cfloat\u003e`.\n\n\nMaking it part of you project\n==\nThere are two ways to do this. Option A is: clone the repo, copy [the\nheader](include/matiopp.h) to your project and include it. That's probably the\neasiest thing to to if you're not using CMake.\n\nIf you are using CMake, I recommend you clone the repo to your thirdparty\ndirectory or whereever you want it to live and add the following to your\nCMakeList files:\n\n```cmake\nadd_subdirectory (${YourProject_SOURCE_DIR}/path/to/matiopp)\n\nadd_exectuable (your_executable your_sources.cc)          # or library\ntarget_link_libraries (your_executable matiopp::matiopp)  # or PRIVATE etc\n```\n\nThat's it. Have fun.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmc-labs%2Fmatiopp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbmc-labs%2Fmatiopp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmc-labs%2Fmatiopp/lists"}