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)

Reply via email to