Hello,

I realize that the current best way to do array slices is to either use 
ArrayViews or SubArrays. 

But will it ever be possible (in future) to have slice of contiguous arrays 
without memory allocation ? How do other compiled languages like Fortran or 
C deal with this issue ?

For example, given: 
M1 = rand(7,3)
M = view(M1,1:6,1:3) # some memory allocation occurs here
a= rand(3)
c1 = zeros(6)
c =view(c1) # some memory allocation occurs here

would it be possible to do this step without array allocation in future ?
c = M*a # 2 memory allocations

I don't have enough of a background to know the limits of the array 
indexing/slicing algorithms. I am designing an optimization software in 
Julia and I am happy using ArrayViews for now but just wanted to know what 
can be expected in the future.

thanks,
Nitin

Reply via email to