On Fri, Aug 04, 2000 at 10:02:05AM -1000, [EMAIL PROTECTED] wrote:
> On Fri, 4 Aug 2000, Tuomas Lukka wrote:
> > On 4 Aug 2000, Ariel Scolnicov wrote:
> > Well, first of all,
> >
> > 10:100, 30:200
> >
> > is not the same: in Perl it comes out as
> >
> > 10..100, 30..200
> >
> > 10, 11, ... , 100, 30, 31, .., 200
>
> Additionally, generically it would not necessarily have to be a range of
> integers. The range could be specified as floating point if we are
> specifying a slice in physical coordinates.
Also, you can specify a non-default step size:
@pdl(1:9:2, 1:9:2); # (1,1) (3,1) (5,1) (7,1) (9,1) (1,3) (3,3) ...
Although I'm not sure how frequently custom step sizes are used in PDL
code...
--
May the best description of competition prevail.
(via, but not speaking for Deutsche Bank)
- Re: Contexts [was:Reduce[Re:]... Piers Cawley
- Re: Contexts [was:Reduce[Re:]... raptor
- Re: Reduce [was: Re: Random items... Jeremy Howard
- Re: Reduce [was: Re: Random i... Martyn Pearce
- Re: Reduce [was: Re: Random i... Jeremy Howard
- Re: PDL-P: Re: Reduce [was: R... Karl Glazebrook
- Re: PDL-P: Re: Reduce [was: R... Ariel Scolnicov
- Re: PDL-P: Re: Reduce [was: R... Tuomas Lukka
- Re: PDL-P: Re: Reduce [was: R... Tim Jenness
- Re: PDL-P: Re: Reduce [was: R... Tuomas Lukka
- Re: PDL-P: indexing Joshua N Pritikin
- Re: PDL-P: indexing Jeremy Howard
- Re: PDL-P: Re: Reduce [was: R... Ariel Scolnicov
- Re: PDL-P: Re: Reduce [was: R... Jeremy Howard
- Re: PDL-P: Re: Reduce [was: R... Karl Glazebrook
- Re: Random items (old p5p issues) Graham Barr
- Re: Random items (old p5p issues) Alan Burlison
- Re: Random items (old p5p issues) Randal L. Schwartz
- Re: Random items (old p5p issues) Dan Sugalski
- Re: Random items (old p5p issues) Jeremy Howard
- Re: Random items (old p5p issues) Tim Jenness
