Re: [julia-users] reinterpret SubArray

2015-08-10 Thread Tim Holy
On Sunday, August 09, 2015 06:45:07 PM Sebastian Good wrote:
> I found myself trying to reinterpret a subarray today, and it didn't work.
> There are obviously plenty of cases where this makes no sense, but it would
> be convenient where it did. Is this on someone's roadmap?

Not mine :-). If you're interested in implementing this, check out the 
`iscontiguous` function in subarray.jl---that should basically handle the 
checking to see if this makes sense.

Best,
--Tim



[julia-users] reinterpret SubArray

2015-08-09 Thread Sebastian Good
I found myself trying to reinterpret a subarray today, and it didn't work. 
There are obviously plenty of cases where this makes no sense, but it would 
be convenient where it did. Is this on someone's roadmap? For instance:

reinterpret(Int16, sub(readbytes(...), 5:10))