On this note, is there a good summary somewhere of the pros/cons between
using `sub` vs `slice` vs `ArrayViews.view`?

On Fri, Oct 23, 2015 at 11:57 AM, Steven G. Johnson <[email protected]>
wrote:

> On Friday, October 23, 2015 at 11:49:21 AM UTC-4, Neal Becker wrote:
>>
>> To be more precise, I'm coming from python/numpy.  There, a native slice:
>> M[1:,2:] for example
>> returns a view, not a copy. As does a strided view:
>> M[::2]
>>  I like this design.  Does julia do this now, or does it plan to in the
>> future?
>
>
> In 0.5, the "native" slice syntax like M[1:end,2:end], both strided and
> non-strided, will return a view.
>
> In 0.4, M[:] etc returns a copy, but you can get a view by the "slice"
> function as Tim mentioned.  So, the functionality is there now, but the
> syntax is a little less familiar.
>

Reply via email to