{"id":19093693,"url":"https://github.com/juliaarrays/lazygrids.jl","last_synced_at":"2026-05-25T19:30:20.697Z","repository":{"id":37889357,"uuid":"383424346","full_name":"JuliaArrays/LazyGrids.jl","owner":"JuliaArrays","description":"A Julia package for representing multi-dimensional grids","archived":false,"fork":false,"pushed_at":"2024-05-19T13:18:25.000Z","size":484,"stargazers_count":17,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-02-17T12:41:13.107Z","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":"mit","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","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":"2021-07-06T10:09:59.000Z","updated_at":"2025-01-04T01:56:12.000Z","dependencies_parsed_at":"2024-05-11T17:26:10.046Z","dependency_job_id":"24e2df5d-e6e5-4b07-982c-d6a5cc6a3b78","html_url":"https://github.com/JuliaArrays/LazyGrids.jl","commit_stats":{"total_commits":39,"total_committers":4,"mean_commits":9.75,"dds":0.3846153846153846,"last_synced_commit":"5b0a91aa2c745054081f7f5f1b8350f1c151759b"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaArrays%2FLazyGrids.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaArrays%2FLazyGrids.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaArrays%2FLazyGrids.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaArrays%2FLazyGrids.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JuliaArrays","download_url":"https://codeload.github.com/JuliaArrays/LazyGrids.jl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240142863,"owners_count":19754640,"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:44.930Z","updated_at":"2026-05-25T19:30:20.646Z","avatar_url":"https://github.com/JuliaArrays.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LazyGrids.jl\nA Julia package for representing multi-dimensional grids.\n\nhttps://github.com/JuliaArrays/LazyGrids.jl\n\n[![docs-stable][docs-stable-img]][docs-stable-url]\n[![docs-dev][docs-dev-img]][docs-dev-url]\n[![action status][action-img]][action-url]\n[![pkgeval status][pkgeval-img]][pkgeval-url]\n[![codecov][codecov-img]][codecov-url]\n[![license][license-img]][license-url]\n[![Aqua QA][aqua-img]][aqua-url]\n[![code-style][code-blue-img]][code-blue-url]\n[![deps](https://juliahub.com/docs/LazyGrids/deps.svg)](https://juliahub.com/ui/Packages/LazyGrids)\n[![version](https://juliahub.com/docs/LazyGrids/version.svg)](https://juliahub.com/ui/Packages/LazyGrids)\n[![pkgeval](https://juliahub.com/docs/LazyGrids/pkgeval.svg)](https://juliahub.com/ui/Packages/LazyGrids)\n\n## Methods\n\nThis package exports the following methods:\n* `ndgrid` : a \"lazy\" version of `ndgrid` that returns a tuple of\n  [`AbstractArray`](https://docs.julialang.org/en/v1/manual/interfaces/#man-interface-array)\n   objects essentially instantly with just a few bytes of memory allocated.\n* `ndgrid_array` : return a traditional tuple of `Array` objects,\n  which takes much longer to create and can use a *lot* of memory.\n  It is not recommended, but is included for comparison purposes.\n\nSee the documentation linked in the blue badges above for examples,\nand for a 1-line lazy version of `meshgrid`.\n\nAs shown in the examples, the lazy version typically is as fast,\nif not faster, than using conventional dense `Array` objects.\n\n## Example\n```julia\njulia\u003e using LazyGrids\n(xg, yg) = ndgrid(1:2, 3:0.5:4)\n([1 1 1; 2 2 2], [3.0 3.5 4.0; 3.0 3.5 4.0])\n\njulia\u003e xg\n2×3 LazyGrids.GridUR{Int64, 1, 2}:\n 1  1  1\n 2  2  2\n\njulia\u003e yg\n2×3 LazyGrids.GridSL{Float64, 2, 2, Base.TwicePrecision{Float64}, Base.TwicePrecision{Float64}}:\n 3.0  3.5  4.0\n 3.0  3.5  4.0\n\njulia\u003e x = range(-1,1,1001)\n-1.0:0.002:1.0\n\njulia\u003e (xg, yg, zg) = ndgrid(x, x, x)\n{... lots of output ...}\n\njulia\u003e size(xg) # show array dimensions\n(1001, 1001, 1001)\n\njulia\u003e sizeof(xg) # show number of bytes used\n72\n```\n\n## Related packages\n\n* https://github.com/JuliaArrays/LazyArrays.jl\n* https://github.com/mcabbott/LazyStack.jl\n* https://github.com/ChrisRackauckas/VectorizedRoutines.jl\n* https://github.com/JuliaArrays/RangeArrays.jl\n\n\n### Compatibility\n\nTested with Julia ≥ 1.10.\n\n\n\u003c!-- URLs --\u003e\n[action-img]: https://github.com/JuliaArrays/LazyGrids.jl/workflows/CI/badge.svg\n[action-url]: https://github.com/JuliaArrays/LazyGrids.jl/actions\n[build-img]: https://github.com/JuliaArrays/LazyGrids.jl/workflows/CI/badge.svg?branch=main\n[build-url]: https://github.com/JuliaArrays/LazyGrids.jl/actions?query=workflow%3ACI+branch%3Amain\n[pkgeval-img]: https://juliaci.github.io/NanosoldierReports/pkgeval_badges/L/LazyGrids.svg\n[pkgeval-url]: https://juliaci.github.io/NanosoldierReports/pkgeval_badges/L/LazyGrids.html\n[code-blue-img]: https://img.shields.io/badge/code%20style-blue-4495d1.svg\n[code-blue-url]: https://github.com/invenia/BlueStyle\n[codecov-img]: https://codecov.io/github/JuliaArrays/LazyGrids.jl/coverage.svg?branch=main\n[codecov-url]: https://codecov.io/github/JuliaArrays/LazyGrids.jl?branch=main\n[docs-stable-img]: https://img.shields.io/badge/docs-stable-blue.svg\n[docs-stable-url]: https://JuliaArrays.github.io/LazyGrids.jl/stable\n[docs-dev-img]: https://img.shields.io/badge/docs-dev-blue.svg\n[docs-dev-url]: https://JuliaArrays.github.io/LazyGrids.jl/dev\n[license-img]: https://img.shields.io/badge/license-MIT-brightgreen.svg\n[license-url]: LICENSE\n[aqua-img]: https://img.shields.io/badge/Aqua.jl-%F0%9F%8C%A2-aqua.svg\n[aqua-url]: https://github.com/JuliaTesting/Aqua.jl\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliaarrays%2Flazygrids.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuliaarrays%2Flazygrids.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliaarrays%2Flazygrids.jl/lists"}