{"id":19093678,"url":"https://github.com/juliaarrays/indirectarrays.jl","last_synced_at":"2026-05-25T19:30:20.380Z","repository":{"id":47412201,"uuid":"63776844","full_name":"JuliaArrays/IndirectArrays.jl","owner":"JuliaArrays","description":"Julia implementation of indexed or \"lookup\" arrays","archived":false,"fork":false,"pushed_at":"2024-04-08T11:22:12.000Z","size":119,"stargazers_count":19,"open_issues_count":3,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-16T16:48:18.829Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Julia","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/JuliaArrays.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2016-07-20T11:41:43.000Z","updated_at":"2023-09-03T12:04:03.000Z","dependencies_parsed_at":"2024-12-24T13:44:01.874Z","dependency_job_id":"23510dfb-b9e1-4283-9c2e-7d6b086e6827","html_url":"https://github.com/JuliaArrays/IndirectArrays.jl","commit_stats":{"total_commits":39,"total_committers":9,"mean_commits":4.333333333333333,"dds":"0.33333333333333337","last_synced_commit":"9ccd41cd60a312e59e5a847ec76a94938dba7efd"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaArrays%2FIndirectArrays.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaArrays%2FIndirectArrays.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaArrays%2FIndirectArrays.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaArrays%2FIndirectArrays.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JuliaArrays","download_url":"https://codeload.github.com/JuliaArrays/IndirectArrays.jl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240142861,"owners_count":19754639,"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-11-09T03:25:41.196Z","updated_at":"2026-05-25T19:30:18.215Z","avatar_url":"https://github.com/JuliaArrays.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IndirectArrays\n\n[![Build Status](https://travis-ci.org/JuliaArrays/IndirectArrays.jl.svg?branch=master)](https://travis-ci.org/JuliaArrays/IndirectArrays.jl)\n\n[![codecov.io](http://codecov.io/github/JuliaArrays/IndirectArrays.jl/coverage.svg?branch=master)](http://codecov.io/github/JuliaArrays/IndirectArrays.jl?branch=master)\n\nAn `IndirectArray` is one that encodes data using a combination of an\n`index` and a `value` table. Each element is assigned its own index, which\nis used to retrieve the value from the `value` table.  Concretely, if\n`A` is an `IndirectArray`, then `A[i,j...] = value[index[i,j,...]]`.\n\nAmong other uses, `IndirectArrays` can represent\n[indexed images](https://en.wikipedia.org/wiki/Indexed_color),\nsometimes called \"colormap images\" or \"paletted images.\"\n\n## Installation\n\n```jl\nPkg.add(\"IndirectArrays\")\n```\n\n## Usage\n\nFor example:\n\n```\nusing IndirectArrays, Colors\n\ncolors = distinguishable_colors(6)\nindex = rand(1:6, 32, 32)\nA = IndirectArray(index, colors)\n```\n\n![random image](randimage.png)\n\nwhich has only 6 colors in it.\n\nThe `value` array can be of any type; it does not have to be color information.\n\n## Related packages\n\n- [CategoricalArrays](https://github.com/nalimilan/CategoricalArrays.jl) offers an even more flexible interface for dealing with arrays in which values are looked up in an index.\n- [PooledArrays](https://github.com/JuliaComputing/PooledArrays.jl)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliaarrays%2Findirectarrays.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuliaarrays%2Findirectarrays.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliaarrays%2Findirectarrays.jl/lists"}