Skip to content

Resizeable multi-dimensional arrays for Julia

License

Notifications You must be signed in to change notification settings

vlepori/ElasticArrays.jl

This branch is 4 commits ahead of, 4 commits behind JuliaArrays/ElasticArrays.jl:main.

Repository files navigation

ElasticArrays.jl

License Build Status Codecov

ElasticArrays provides resizeable multidimensional arrays for Julia.

An ElasticArray is a fast, contiguous array that can grow and shrink, but only in its last dimension:

using ElasticArrays

A = ElasticArray{Int}(undef, 2, 3, 0)

for i in 1:4
    append!(A, rand(0:99, 2, 3))
end
size(A) == (2, 3, 4)

resize!(A, 2, 3, 2)
size(A) == (2, 3, 2)

However

resize!(A, 2, 4, 2)

would result in an error, as only the size of the last dimension may be changed.

About

Resizeable multi-dimensional arrays for Julia

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Julia 100.0%