{"id":29122358,"url":"https://github.com/rusoleal/vector_math","last_synced_at":"2026-04-07T18:01:09.943Z","repository":{"id":301754911,"uuid":"1009823317","full_name":"rusoleal/vector_math","owner":"rusoleal","description":null,"archived":false,"fork":false,"pushed_at":"2026-03-18T19:34:02.000Z","size":95,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-19T07:50:45.541Z","etag":null,"topics":["cpp17","linear-algebra","math","matrix-computations","multiplatform","simd"],"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/rusoleal.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,"zenodo":null}},"created_at":"2025-06-27T19:19:51.000Z","updated_at":"2026-03-18T19:32:23.000Z","dependencies_parsed_at":"2025-06-28T16:49:43.228Z","dependency_job_id":"37a40972-8549-4836-8cb0-b7f2a07eb07f","html_url":"https://github.com/rusoleal/vector_math","commit_stats":null,"previous_names":["rusoleal/vector_math"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rusoleal/vector_math","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rusoleal%2Fvector_math","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rusoleal%2Fvector_math/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rusoleal%2Fvector_math/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rusoleal%2Fvector_math/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rusoleal","download_url":"https://codeload.github.com/rusoleal/vector_math/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rusoleal%2Fvector_math/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31522574,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"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":["cpp17","linear-algebra","math","matrix-computations","multiplatform","simd"],"created_at":"2025-06-29T17:12:53.273Z","updated_at":"2026-04-07T18:01:09.933Z","avatar_url":"https://github.com/rusoleal.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vector_math\n\nA C++17 vector and matrix mathematics library with SIMD acceleration for x86/x64 (SSE/AVX) and ARM (NEON).\n\n## Features\n\n- Generic vector and matrix templates (`Vec\u003cT, N\u003e`, `Mat\u003cT, R, C\u003e`)\n- Typed specializations: `Vector2`, `Vector3`, `Vector4`, `Matrix2`, `Matrix3`, `Matrix4`\n- SIMD-optimized `Matrix4f` (SSE) and `Matrix4d` (AVX) for performance-critical paths\n- `Quaternion\u003cT\u003e` with Hamilton product, slerp, axis-angle, and vector rotation\n- Rich vector API: dot, cross, distance, angle, reflect, lerp, clamp, floor/ceil/round, component-wise ops\n- Rich matrix API: determinant, inverse, TRS compose/decompose helpers, row/column access\n- Full Doxygen documentation on all public APIs\n- Namespace: `systems::leal::vector_math`\n\n## Requirements\n\n- CMake 3.22.1+\n- C++20 compiler (GCC, Clang, MSVC)\n\n## Building\n\n```bash\ncmake -B build -S .\nmake -C build\n```\n\n### Tests\n\n```bash\n./launch_test.sh\n# or\ncmake -B build/test -S . -DVECTOR_MATH_BUILD_TEST=ON\nmake -C build/test\nbuild/test/vector_math_test\n```\n\n### Benchmarks\n\n```bash\n./launch_benchmark.sh\n# or\ncmake -B build/benchmark -S . -DVECTOR_MATH_BUILD_BENCHMARK=ON -DCMAKE_BUILD_TYPE=Release\nmake -C build/benchmark\nbuild/benchmark/vector_math_benchmark\n```\n\n## SIMD Support\n\nArchitecture is detected automatically at compile time:\n\n| Architecture | Intrinsics | Types accelerated |\n|---|---|---|\n| x86/x64 | SSE / AVX (`-mavx`) | `Matrix4f` (SSE), `Matrix4d` (AVX) |\n| AArch64 | NEON | `Matrix4f` (NEON), `Matrix4d` (NEON) |\n| ARM 32-bit | — | `Matrix4f` (scalar fallback), `Matrix4d` (scalar fallback) |\n\n`Vector4f` and `Matrix4f` use `alignas(16)` to satisfy SIMD alignment requirements.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frusoleal%2Fvector_math","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frusoleal%2Fvector_math","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frusoleal%2Fvector_math/lists"}