# Usage of vector of arrays

**URL:** <https://discourse.julialang.org/t/usage-of-vector-of-arrays/69882>\
**Category:** General Usage\
**Tags:** arrays\
**Created:** [October 16, 2021, 10:01am UTC](https://discourse.julialang.org/t/usage-of-vector-of-arrays/69882 "2021-10-16T10:01:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [October 16, 2021, 12:59pm UTC](https://discourse.julialang.org/t/usage-of-vector-of-arrays/69882/2 "2021-10-16T12:59:51Z")

</div>

Regarding question 1, be careful about initializing a vector of vectors using `fill`.  
This is a confusing aspect of Julia at first → link to [post](https://discourse.julialang.org/t/simple-question-about-assignment-to-a-vector-of-vectors/62744) where this is explained.

All 3 entries of `Tsten` will point to the same location and the inplace assignment `Tsten[1] .= T` will keep all 3 pointing to the new replaced `T` values.

Do instead: `Tsten[1] = T`, or keep the inplace assignment but then you will have to pre-assign the individual arrays of zeros independently using a loop or comprehension as in the linked post .

---

_[View the full topic](https://discourse.julialang.org/t/usage-of-vector-of-arrays/69882)._
