Why not use
j = reshape(J, (4*10,12))
typeof(j) <: Matrix #Evaluates to true
There’s no need for reinterpret
as the elements are going to be Float64
still.
Note that a reshape
d array in Julia 0.7 is similar to a view, in that it shares its data with the original array.