Name: ElasticArrays.jl
Owner: JuliaArrays
Description: Resizeable multi-dimensional arrays for Julia
Created: 2017-10-06 15:32:16.0
Updated: 2018-01-17 18:59:41.0
Pushed: 2017-10-15 08:39:01.0
Size: 23
Language: Julia
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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:
g ElasticArrays
ElasticArray{Int}(2, 3, 0)
i in 1:4
append!(A, rand(0:99, 2, 3))
(A) == (2, 3, 4)
ze!(A, 2, 3, 2)
(A) == (2, 3, 2)
However
ze!(A, 2, 4, 2)
would result in an error, as only the size of the last dimension may be changed.