Thanks. It would be nice if it were possible in some future version. Cheers,
Eric


On May 5, 2014, at 11:14 AM, Stefan Karpinski <[email protected]> wrote:

> Currently, no. You cannot change the size of a multidimensional array, only 
> 1-dimensional arrays can be resized.
> 
> 
> On Mon, May 5, 2014 at 1:07 PM, Eric Libby <[email protected]> wrote:
> Hello,
> I have a 102x500 Array{Int64,2} named x. I want to add 25 additional columns 
> all of the same row size (102) using a function. In my function I have the 
> line: x=hcat(x,ones(Int64,102,25)) which works. The problem is that this 
> modifies x in a non-permanent way-- perhaps a local copy is created?-- so 
> that once the function is completed x remains 102 X 500. For 1-d arrays, 
> resize! causes a permanent change to the size of the array. Is there some 
> function or way that I can manipulate the multidimensional array with 
> permanent changes without passing the array back and forth (i.e. having a 
> "return " line)?
> Thanks,
> Eric
> 

Reply via email to