Re: New variable type: matrix

2000-08-30 Thread Dan Sugalski
At 01:47 PM 8/30/00 -0400, Karl Glazebrook wrote: If you do a plain my int @foo; it'll end up with a contiguous block of memory anyway. :compact seems to me more an attribute for sparse arrays than anything else. Uhm do you mean a contiguous block of 4 byte integers or a

Re: Proposed RFC for matrix indexing and slicing

2000-08-30 Thread Nathan Torkington
Karl Glazebrook writes: Yes. And for the record I also think the current approach of lets generate ten million RFCs and Uncle Larry knows best is nuts. There are already too many RFCs on this topic alone to grasp coherently. Do you have a better suggestion? Nat

Re: Proposed RFC for matrix indexing and slicing

2000-08-30 Thread Karl Glazebrook
Nathan Torkington wrote: Karl Glazebrook writes: Yes. And for the record I also think the current approach of lets generate ten million RFCs and Uncle Larry knows best is nuts. There are already too many RFCs on this topic alone to grasp coherently. Do you have a better suggestion?

Re: New variable type: matrix

2000-08-30 Thread Jeremy Howard
Karl Glazebrook wrote: There is a difference between a List of Lists and a multi-dimensional array - the latter is rectangular, e.g. the rows are all the same size so you don't have to store the sizes of individual ones. So the latter needs much less storage overhead. How would you be

Re: A thought concerning matrix index variables...

2000-08-30 Thread Jeremy Howard
Buddha Buck wrote: RFC 169 says it would be nice if: @a[^i;^j] = @b[^j;^i]; did a transpose operation. Should the syntax also allow: # fill a 10x10 array with 0-99 my @table: bounds(10,10); @table[^i;^j] = ^i*10 + ^j; I think it should--it seems a natural extension.