{"id":15394733,"url":"https://github.com/bensuperpc/vector","last_synced_at":"2026-01-20T21:02:30.266Z","repository":{"id":41435536,"uuid":"509574242","full_name":"bensuperpc/vector","owner":"bensuperpc","description":"High performance multidimensional vectors in C++17, with optional OpenMP acceleration.","archived":false,"fork":false,"pushed_at":"2023-09-14T18:48:10.000Z","size":135,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T15:51:06.041Z","etag":null,"topics":["cmake","cmake-init","cpp","cpp17","openmp","vector"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bensuperpc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2022-07-01T19:55:43.000Z","updated_at":"2024-12-12T18:15:11.000Z","dependencies_parsed_at":"2024-10-19T02:25:19.638Z","dependency_job_id":null,"html_url":"https://github.com/bensuperpc/vector","commit_stats":{"total_commits":35,"total_committers":1,"mean_commits":35.0,"dds":0.0,"last_synced_commit":"9febb9c84e7b73e6c621afd920dd3c8bb47a130c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bensuperpc/vector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bensuperpc%2Fvector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bensuperpc%2Fvector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bensuperpc%2Fvector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bensuperpc%2Fvector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bensuperpc","download_url":"https://codeload.github.com/bensuperpc/vector/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bensuperpc%2Fvector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28613661,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T18:56:40.769Z","status":"ssl_error","status_checked_at":"2026-01-20T18:54:26.653Z","response_time":117,"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":["cmake","cmake-init","cpp","cpp17","openmp","vector"],"created_at":"2024-10-01T15:24:19.675Z","updated_at":"2026-01-20T21:02:30.226Z","avatar_url":"https://github.com/bensuperpc.png","language":"C++","readme":"# vector\n\nHigh performance vectors and multidimensional vectors in **C++17**, with **optional OpenMP acceleration** and **no external dependencies** (Except for testing).\n\n[![stability-experimental](https://img.shields.io/badge/stability-experimental-orange.svg)](https://github.com/mkenney/software-guides/blob/master/STABILITY-BADGES.md#experimental) ![GitHub](https://img.shields.io/github/license/bensuperpc/vector)\n\n## Examples\n\nThe number of dimension is almost infinite (1 to 18 446 744 073 709 551 615).\n\n### 2D example\n\n```cpp\n#include \u003ciostream\u003e\n#include \u003cvector\u003e\n\n#include \"vector/multi_array.hpp\"\n\nint main()\n{\n  // Set dimensions, 2D array with 5x5 elements\n  std::vector\u003cuint64_t\u003e vecDim = {5, 5};\n  auto vec2D_A = benlib::multi_array\u003cuint32_t\u003e(vecDim);\n\n  // fill with 1\n  vec2D_A.fill(1);\n\n  // print\n  std::cout \u003c\u003c \"Must be equal to 1: \" \u003c\u003c vec2D_A[0][0] \u003c\u003c std::endl;\n\n  // set value\n  vec2D_A[1][1] = 2;\n\n  // get value (Faster than using [] operator)\n  std::vector\u003cuint64_t\u003e vecCoor = {1, 1};\n  std::cout \u003c\u003c \"Must be equal to 2: \" \u003c\u003c vec2D_A.get_value(vecCoor) \u003c\u003c std::endl;\n\n  // set value (Faster than using [] operator)\n  vec2D_A.set_value(vecCoor, 3);\n  std::cout \u003c\u003c \"Must be equal to 3: \" \u003c\u003c vec2D_A.get_value(vecCoor) \u003c\u003c std::endl;\n  return 0;\n}\n```\n\n### 3D example\n\n```cpp\n#include \u003ciostream\u003e\n#include \u003cvector\u003e\n\n#include \"vector/multi_array.hpp\"\n\nint main()\n{\n  // Set dimensions, 3D array with 5x5x5 elements\n  std::vector\u003cuint64_t\u003e vecDim = {5, 5, 5};\n  auto vec3D_A = benlib::multi_array\u003cuint32_t\u003e(vecDim);\n\n  // fill with 1\n  vec3D_A.fill(1);\n\n  // print\n  std::cout \u003c\u003c \"Must be equal to 1: \" \u003c\u003c vec3D_A[0][0][0] \u003c\u003c std::endl;\n\n  // set value\n  vec3D_A[1][1][1] = 2;\n\n  // get value (Faster than using [] operator)\n  std::vector\u003cuint64_t\u003e vecCoor = {1, 1, 1};\n  std::cout \u003c\u003c \"Must be equal to 2: \" \u003c\u003c vec3D_A.get_value(vecCoor) \u003c\u003c std::endl;\n\n  // set value (Faster than using [] operator)\n  vec3D_A.set_value(vecCoor, 3);\n  std::cout \u003c\u003c \"Must be equal to 3: \" \u003c\u003c vec3D_A.get_value(vecCoor) \u003c\u003c std::endl;\n  return 0;\n}\n```\n\n## Building and installing\n\nSee the [BUILDING](BUILDING.md) document.\n\n## Contributing\n\nSee the [CONTRIBUTING](CONTRIBUTING.md) document.\n\n## Licensing\n\nSee the [LICENSE](LICENSE) document.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbensuperpc%2Fvector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbensuperpc%2Fvector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbensuperpc%2Fvector/lists"}