{"id":17575079,"url":"https://github.com/ymd-h/veclib-zig","last_synced_at":"2026-02-07T10:02:10.603Z","repository":{"id":258571354,"uuid":"869574491","full_name":"ymd-h/veclib-zig","owner":"ymd-h","description":"SIMD based Vector Library for Zig","archived":false,"fork":false,"pushed_at":"2024-10-23T10:31:39.000Z","size":193,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-19T04:06:55.938Z","etag":null,"topics":["simd","zig"],"latest_commit_sha":null,"homepage":"https://ymd-h.github.io/veclib-zig/","language":"Zig","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/ymd-h.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":"2024-10-08T14:21:23.000Z","updated_at":"2024-10-23T10:31:42.000Z","dependencies_parsed_at":"2025-04-12T20:44:05.836Z","dependency_job_id":"856f55d4-29b4-4d93-9862-1246f96434d9","html_url":"https://github.com/ymd-h/veclib-zig","commit_stats":null,"previous_names":["ymd-h/veclib-zig"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/ymd-h/veclib-zig","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ymd-h%2Fveclib-zig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ymd-h%2Fveclib-zig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ymd-h%2Fveclib-zig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ymd-h%2Fveclib-zig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ymd-h","download_url":"https://codeload.github.com/ymd-h/veclib-zig/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ymd-h%2Fveclib-zig/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29191991,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T07:37:03.739Z","status":"ssl_error","status_checked_at":"2026-02-07T07:37:03.029Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["simd","zig"],"created_at":"2024-10-21T22:06:28.455Z","updated_at":"2026-02-07T10:02:10.576Z","avatar_url":"https://github.com/ymd-h.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# veclib.zig: SIMD based Vector Computing Library\n\n\n\u003e [!WARNING]\n\u003e This project is still under development.\n\nveclib utilizes Zig standard SIMD vector calculation.\nAside from the standard, veclib supports scalar-vector mixed calculation\nand runtime-known length slice handling.\n\n\n## Features\n\n- Nullary Function\n  - `iota`\n- Element-wise Unary Function (`f(comptime T: type, arg: anytype, out: []T) void`)\n  - `copy`\n  - `sqrt`\n  - `sin`, `cos`, `tan`\n  - `exp`, `exp2`, `exp1m`\n  - `log`, `log2`, `log10`, `log1p`\n  - `abs`\n  - `floor`, `ceil`, `trunc`, `round`\n  - `byteSwap`, `bitReverse`\n  - `countLeadingZeros`, `countTrailingZeros`, `popCount`\n- Element-wise Binary Function (`f(comptime T: type, arg1: anytype, arg2: anytype, out: []T) void`)\n  - `add`, `wrapAdd`, `saturateAdd`\n  - `sub`, `wrapSub`, `saturateSub`\n  - `mul`, `wrapMul`, `saturateMul`,\n  - `div`, `divFloor`, `divTrunc`, `rem`, `mod`\n  - `bitAnd`, `bitOr`, `bitXor`\n  - `min`, `max`\n- Element-wise Binary Comparison (`f(comptime T: type, arg1: anytype, arg2: anytype, out: [] bool) void`)\n  - `eq`, `neq`, `gt`, `gte`, `lt`, `lte`,\n- Ternary Function (`f(comptime T: type, arg1: anytype, arg2: anytype, arg3: anytype, out: []T)`)\n  - `mulAdd`\n  - `clip`\n- Reduction Function (`f(comptime T: type, arg: []const T) T`)\n  - `sum`, `wrapSum`, `saturateSum`,\n  - `prod`, `wrapProd`, `saturateProd`,\n  - `smallest`, `largest`,\n  - `all`, `any`\n\n\nWe use `anytype` for type inference, however, there some limitations.\n- `arg` at element-wise functions can be scalar or slice.\n  - scalar value will be broadcsted (not to slice size, but to SIMD vector size)\n- Not all types are supported at some functions.\n  - e.g. Bit-wise operations are only supported for integer types.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fymd-h%2Fveclib-zig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fymd-h%2Fveclib-zig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fymd-h%2Fveclib-zig/lists"}