You can also use the reshape() function, to interpret an array as a 
different shape with a reference to the original array.

kl. 14:43:46 UTC+2 tirsdag 26. august 2014 skrev Ivar Nesje følgende:
>
> We have SubArrays, which has some poor properties with regard to type 
> stability and speed.
>
> There is also ArrayViews <https://github.com/lindahua/ArrayViews.jl> that 
> is currently a separate package, but it is tagged for 0.4-projects to merge 
> (something like) it into master, and make slicing do that by default.
>
> Regards Ivar
>
> kl. 14:26:46 UTC+2 tirsdag 26. august 2014 skrev Neal Becker følgende:
>>
>> In numpy, array contents can be re-interpreted without copying.  The 
>> indexing of 
>> an array is defined by it's strides, and by altering the strides we can 
>> get 
>> different views. 
>>
>>
>> http://nbviewer.ipython.org/github/ipython-books/cookbook-code/blob/master/notebooks/chapter04_optimization/06_stride_tricks.ipynb
>>  
>>
>> Does julia have a similar facility? 
>>
>> -- 
>> -- Those who don't understand recursion are doomed to repeat it 
>>
>>

Reply via email to