{"id":16572669,"url":"https://github.com/dcooley/interleave","last_synced_at":"2025-10-29T02:30:17.745Z","repository":{"id":203447123,"uuid":"261324991","full_name":"dcooley/interleave","owner":"dcooley","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-02T14:46:42.000Z","size":1089,"stargazers_count":10,"open_issues_count":3,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-01T21:11:07.538Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dcooley.png","metadata":{"files":{"readme":"README.Rmd","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}},"created_at":"2020-05-05T00:19:11.000Z","updated_at":"2024-01-02T05:40:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"5968641e-7dea-4296-b95a-7a5de6c19089","html_url":"https://github.com/dcooley/interleave","commit_stats":null,"previous_names":["dcooley/interleave"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcooley%2Finterleave","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcooley%2Finterleave/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcooley%2Finterleave/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcooley%2Finterleave/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcooley","download_url":"https://codeload.github.com/dcooley/interleave/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238758223,"owners_count":19525728,"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":[],"created_at":"2024-10-11T21:28:13.941Z","updated_at":"2025-10-29T02:30:16.992Z","avatar_url":"https://github.com/dcooley.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\neditor_options: \n  chunk_output_type: console\n---\n\n[![R build status](https://github.com/dcooley/interleave/workflows/R-CMD-check/badge.svg)](https://github.com/dcooley/interleave/actions)\n[![Codecov test coverage](https://codecov.io/gh/dcooley/interleave/branch/master/graph/badge.svg)](https://app.codecov.io/gh/dcooley/interleave?branch=master)\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n\nlibrary(interleave)\n```\n\n\n\n```{r, echo = FALSE, out.height=\"256px\", out.width=\"256px\"}\nknitr::include_graphics(\"./man/figures/interleaving.gif\")\n```\n\n# interleave\n\nAs the amazing gif shows, **interleaving** in this context means converting a matrix into a vector, filled in a row-wise manner.\n\nI'm building this library to be the workhorse for converting matrices (and lists of matrices) into single, interleaved vectors, ready for WebGL applications.\n\nHere are some simple examples\n\n```{r}\n\n( mat1 \u003c- matrix(1:20, ncol = 2, byrow = T) )\n\ninterleave( mat1 )\n\n( mat2 \u003c- matrix(20:1, ncol = 5, byrow = T) )\n\ninterleave( mat2 )\n\nlst \u003c- list( mat1, mat2 )\n\ninterleave( lst )\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcooley%2Finterleave","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcooley%2Finterleave","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcooley%2Finterleave/lists"}