{"id":17113089,"url":"https://github.com/emmt/flatarrays.jl","last_synced_at":"2026-01-27T18:04:43.639Z","repository":{"id":71510231,"uuid":"162745881","full_name":"emmt/FlatArrays.jl","owner":"emmt","description":"Flat arrays for Julia (for fast linear indexing)","archived":false,"fork":false,"pushed_at":"2020-11-03T21:42:21.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-04T08:57:57.079Z","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/emmt.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":"2018-12-21T18:29:06.000Z","updated_at":"2020-11-03T21:42:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"b1902f5d-f45e-4f14-a736-ee671b970ec4","html_url":"https://github.com/emmt/FlatArrays.jl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/emmt/FlatArrays.jl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emmt%2FFlatArrays.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emmt%2FFlatArrays.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emmt%2FFlatArrays.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emmt%2FFlatArrays.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emmt","download_url":"https://codeload.github.com/emmt/FlatArrays.jl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emmt%2FFlatArrays.jl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28817795,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T18:01:38.485Z","status":"ssl_error","status_checked_at":"2026-01-27T18:01:27.499Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2024-10-14T17:02:57.178Z","updated_at":"2026-01-27T18:04:43.634Z","avatar_url":"https://github.com/emmt.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FlatArrays\n\n[![License](http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)](LICENSE.md)\n[![Build Status](https://travis-ci.com/emmt/FlatArrays.jl.svg?branch=master)](https://travis-ci.com/emmt/FlatArrays.jl)\n[![Build Status](https://ci.appveyor.com/api/projects/status/github/emmt/FlatArrays.jl?branch=master)](https://ci.appveyor.com/project/emmt/FlatArrays-jl/branch/master)\n[![Coverage Status](https://coveralls.io/repos/emmt/FlatArrays.jl/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/emmt/FlatArrays.jl?branch=master)\n[![codecov.io](http://codecov.io/github/emmt/FlatArrays.jl/coverage.svg?branch=master)](http://codecov.io/github/emmt/FlatArrays.jl?branch=master)\n\nThis [Julia](http://julialang.org/) package provides *flat* arrays.  That is\narrays with 1-based indices, whose elements are all continuous and in\ncolumn-major order.  Such arrays are useful for writting efficient Julia code\nusing linear indexing.  This kind of arrays is also what is expected by most\nnumerical libraries and FlatArrays may be helpful to link such libraries in\nJulia.\n\nFlatArrays are built from any Julia array and can have any dimensions providing\nthat their total size do not exceed that of the input array.  This is like\n`reshape` except that building a `FlatArray` from a Julia `Array` is faster\nthan calling `reshape` (by a factor ~ 7 for a vector, ~ 5 for a matrix).  This\nmay be significant for very small arrays.\n\nIndexing of FlatArray's is as fast as regular Julia arrays.\n\nI found FlatArrays useful to pretend that multidimensional arrays are vectors\nor matrices so as to automatically benefit from very fast linear algebra\nmethods (*e.g.*, BLAS or LAPACK).  Again, this seems like `reshape` except that\n`reshape` is slower and does not guarantee how the elements are stored.\n\n\n## Simple Usage\n\nImport the package:\n\n```julia\nusing FlatArrays\n```\n\nand then:\n\n```julia\nflatten(A, n) -\u003e V\n```\n\nyields a *flat* vector `V` of length `n` whose elements are given by array `A`.\nTo build a *flat* matrix from the elements of `A`, call:\n\n```julia\nflatten(A, m, n) -\u003e M\n```\n\nwhich yields a *flat* matrix `M` of size `m` rows by `n` columns whose elements are\ngiven by array `A`.\n\n\n## Installation\n\nTo install FlatArrays, you must clone its repository:\n\n```sh\nusing Pkg\nPkg.clone(\"https://github.com/emmt/FlatArrays.jl.git\")\n```\n\nThe FlatArrays package is pure Julia code and there is nothing to build.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femmt%2Fflatarrays.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femmt%2Fflatarrays.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femmt%2Fflatarrays.jl/lists"}