# Convert 1D Array to 1D Array of StaticArrays?

**URL:** <https://discourse.julialang.org/t/convert-1d-array-to-1d-array-of-staticarrays/67657>\
**Category:** General Usage\
**Tags:** arrays, convert, staticarrays\
**Created:** [September 3, 2021, 4:18pm UTC](https://discourse.julialang.org/t/convert-1d-array-to-1d-array-of-staticarrays/67657 "2021-09-03T16:18:46Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Post date:** [September 3, 2021, 7:33pm UTC](https://discourse.julialang.org/t/convert-1d-array-to-1d-array-of-staticarrays/67657/8 "2021-09-03T19:33:53Z")

</div>

> [@Ahmed\_Salih](#):
>
> Seems like this is the best approach though, other than the return type or am I overthinking?

It is just ugly 🙂 But apparently there is no “solution” to the aesthetic problem.

> [@Simplify type information when reinterpreting/reshaping](https://discourse.julialang.org/t/simplify-type-information-when-reinterpreting-reshaping/66909):
>
> I frequently have to do things like this: julia\> x = rand(3,10) 3×10 Matrix{Float64}: 0.233999 0.217953 0.391807 0.396972 0.612708 0.344216 0.513826 0.724808 0.222591 0.668894 0.152236 0.0596347 0.297019 0.320482 0.864853 0.658225 0.72082 0.966251 0.429694 0.980746 0.181907 0.561663 0.991661 0.968927 0.800681 0.838888 0.624427 0.874867 0.818654 0.536921 julia\> y = reinterpret(reshape,SVector{3,Float64},x) 10-element reinterpret(reshape, SVector{3, Float64}, ::M…

---

_[View the full topic](https://discourse.julialang.org/t/convert-1d-array-to-1d-array-of-staticarrays/67657)._
