# Bitstype homonyms?

**URL:** https://discourse.julialang.org/t/bitstype-homonyms/2027
**Category:** General Usage
**Created:** [February 10, 2017, 2:44pm UTC](https://discourse.julialang.org/t/bitstype-homonyms/2027 "2017-02-10T14:44:55Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![JeffreySarnoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jeffreysarnoff/32/1980_2.png) [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)
#### Post date: [February 10, 2017, 2:44pm UTC](https://discourse.julialang.org/t/bitstype-homonyms/2027/1 "2017-02-10T14:44:55Z")

</div>

I have a 64-bit bitstype that is bit-equivalent to Float64 and does math as Float64 does. I can reinterpret one to the other. I would like to do something reinterpret-like with vectors and matricies (maybe StaticArrays) formed thereof. The goal is to avoid copying (in both directions) by some-sort-of type punning. With the understanding that this is _unsafe_ and would be an internal mechanism only, is there a way?

---

<div class="post-metadata">

### Author: ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)
#### Post date: [February 10, 2017, 3:02pm UTC](https://discourse.julialang.org/t/bitstype-homonyms/2027/2 "2017-02-10T15:02:39Z")

</div>

Do you mean something like:

```julia
julia> reinterpret(SVector{5, Float64}, rand(5,5), (5,1))
5×1 Array{StaticArrays.SVector{5,Float64},2}:
 [0.26857,0.50109,0.820086,0.164511,0.861485]    
 [0.268779,0.0418737,0.0973738,0.478333,0.926014]
 [0.395503,0.147222,0.153111,0.0439762,0.751799] 
 [0.0218796,0.725483,0.306756,0.272246,0.346762] 
 [0.954175,0.492579,0.392173,0.0514481,0.536747] 

```

?

---

<div class="post-metadata">

### Author: ![JeffreySarnoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jeffreysarnoff/32/1980_2.png) [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)
#### Post date: [February 10, 2017, 3:34pm UTC](https://discourse.julialang.org/t/bitstype-homonyms/2027/3 "2017-02-10T15:34:05Z")

</div>

@kristoffer.carlsson Now I see it. Thank you.
