I wrote: > Karl Glazebrook wrote: > > for a slice we want > > > > $a[10:20:2, 11:30:3] > > > As opposed to: > > $a[[10:20:2], [11:30:3]] > Sorry--I need to correct this. The correct syntax for a list slice under my proposal would actually be: @a[10:20:2][11:30:3] It needs the '@' of course since it's returning an array, and it needs to use the standard LOL notation with the extension to multiple elements. OTOH: @a[[10:20:2], [11:30:3]] would actually just return the 2 points at (10,12,14,16,18,20) and (11,14,17,20,23,36,29).
- Re: n-dim matrices Karl Glazebrook
- Re: n-dim matrices David L. Nicol
- Re: n-dim matrices Jeremy Howard
- Re: n-dim matrices Christian Soeller
- Re: n-dim matrices Karl Glazebrook
- Re: n-dim matrices Jeremy Howard
- Re: n-dim matrices Buddha Buck
- Re: n-dim matrices Christian Soeller
- Matrix, array, or tensor? (was... Jeremy Howard
- Re: Matrix, array, or tensor? ... Karl Glazebrook
- Re: n-dim matrices Jeremy Howard
- Re: n-dim matrices Christian Soeller
- Re: n-dim matrices Buddha Buck
- Re: n-dim matrices Jeremy Howard
- Re: n-dim matrices Jeremy Howard
- Re: n-dim matrices Christian Soeller
- Re: n-dim matrices Jeremy Howard