在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:JuliaArrays/ElasticArrays.jl开源软件地址:https://github.com/JuliaArrays/ElasticArrays.jl开源编程语言:Julia 100.0%开源软件介绍:ElasticArrays.jlElasticArrays provides resizeable multidimensional arrays for Julia. An 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. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论