{"id":18089016,"url":"https://github.com/eriksjolund/simd-diagonal-load","last_synced_at":"2025-04-06T02:28:55.071Z","repository":{"id":92823376,"uuid":"140427462","full_name":"eriksjolund/simd-diagonal-load","owner":"eriksjolund","description":"Header-only C++ library to load SIMD-vectors column-wise from a matrix but then use diagonally","archived":false,"fork":false,"pushed_at":"2018-12-19T13:03:03.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T08:39:11.801Z","etag":null,"topics":["c-plus-plus","diagonal","header-only","performance","simd-intrinsics","simd-library"],"latest_commit_sha":null,"homepage":null,"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/eriksjolund.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":"2018-07-10T12:18:14.000Z","updated_at":"2020-12-14T16:12:40.000Z","dependencies_parsed_at":"2023-08-23T01:57:01.613Z","dependency_job_id":null,"html_url":"https://github.com/eriksjolund/simd-diagonal-load","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eriksjolund%2Fsimd-diagonal-load","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eriksjolund%2Fsimd-diagonal-load/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eriksjolund%2Fsimd-diagonal-load/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eriksjolund%2Fsimd-diagonal-load/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eriksjolund","download_url":"https://codeload.github.com/eriksjolund/simd-diagonal-load/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247425541,"owners_count":20936971,"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":["c-plus-plus","diagonal","header-only","performance","simd-intrinsics","simd-library"],"created_at":"2024-10-31T17:42:38.594Z","updated_at":"2025-04-06T02:28:55.055Z","avatar_url":"https://github.com/eriksjolund.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simd-diagonal-load\n\nsimd-diagonal-load is a C++ library that efficiently loads diagonals into SIMD vectors,\nwhen the data is stored in such a way that only columns can be loaded.\n\nThe problem is described in \n\nhttps://stackoverflow.com/questions/15198011/how-to-load-a-sliding-diagonal-vector-from-data-stored-column-wise-withsse\n\nA naive implementation could be formulated as:\n\n```c++\nint width=1000000; // a big number\nuint8_t matrix[width][16];\nfill_matrix_with_interesting_values(\u0026matrix);\n\nfor (int i=0; i \u003c width - 16; ++i) {\n  uint8_t diagonal_vector[16];\n  for (int j=0; j\u003c16; ++j) {\n    diagonal_vector[j] = matrix[i+j][j];\n  }\n  do_something(\u0026diagonal_vector);\n}\n```\n\nThis library is demnostrated in the \n\nhttps://github.com/eriksjolund/simd-diagonal-load-json-demo#quick-demonstration\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feriksjolund%2Fsimd-diagonal-load","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feriksjolund%2Fsimd-diagonal-load","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feriksjolund%2Fsimd-diagonal-load/lists"}