# \#elasticarrays

**URL:** https://discourse.julialang.org/tag/elasticarrays/850.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Resizing ODE integrator with matrix or VectorOfArray initial condition](https://discourse.julialang.org/t/resizing-ode-integrator-with-matrix-or-vectorofarray-initial-condition/89583)

<div class="topic-metadata">

**Author:** [@DanielVandH](https://discourse.julialang.org/u/DanielVandH)\
**Replies:** 3\
**Last updated:** [November 1, 2022, 12:48am UTC](https://discourse.julialang.org/t/resizing-ode-integrator-with-matrix-or-vectorofarray-initial-condition/89583 "2022-11-01T00:48:05Z")

</div>

Consider the following: using OrdinaryDiffEq using ElasticArrays function sysde!(du, u, p, t) du\[:, 1\] .= rand(2) du\[:, 2\] .= rand(2) du\[:, 3\] .= rand(2) nothing end u0 = ElasticArray{Float64}(\[0.0 0.0 …

---

## [Type-stability with an elastic array in a struct](https://discourse.julialang.org/t/type-stability-with-an-elastic-array-in-a-struct/82298)

<div class="topic-metadata">

**Author:** [@james3](https://discourse.julialang.org/u/james3)\
**Replies:** 1\
**Last updated:** [June 6, 2022, 10:40am UTC](https://discourse.julialang.org/t/type-stability-with-an-elastic-array-in-a-struct/82298 "2022-06-06T10:40:19Z")

</div>

I have defined a struct that contains an elastic array, similar to the following. struct MyStruct myelas::ElasticMatrix{Int64} end However, @code\_warntype shows the following is not type-stable. function test\_st…

---

## [ElasticArrays/ArraysofArrays for Vector of Arrays](https://discourse.julialang.org/t/elasticarrays-arraysofarrays-for-vector-of-arrays/70426)

<div class="topic-metadata">

**Author:** [@mrVeng](https://discourse.julialang.org/u/mrVeng)\
**Replies:** 5\
**Last updated:** [November 25, 2021, 9:04pm UTC](https://discourse.julialang.org/t/elasticarrays-arraysofarrays-for-vector-of-arrays/70426 "2021-11-25T21:04:18Z")

</div>

Dear all, I would like to use ArraysOfArrays and ElasticArrays to handle indexing a Vector vec of type Vector{\<:AbstractArray{T}} where {T} better, as I often need to call vec\[iter\]\[idx\], and afaik with these packages I…
