Hello,

I wonder if the following behavior is the expected behavior:

     pdl> $x=sequence(2)
     pdl> p $x(0:-1)
     [0 1]
     pdl> p $x(1:-1)
     [1]
     pdl> p $x(2:-1)
     Stringizing problem: Error in slice:slice starts out of bounds in pos
     0 (start is 2; end is -1; inc is 0; source dim 0 runs 0 to 1).
     PDL::isempty(PDL=SCALAR(0x55800a893060)) called at...
     ...
     pdl> $y=sequence(0)
     pdl> p $y
     Empty[0]

Shouldn't $x(2:-1) produce an empty ndarray, as $y, instead of an error?

Regards,
Luis


-- 

                                                                  o
W. Luis Mochán,                      | tel:(52)(777)329-1734     /<(*)
Instituto de Ciencias Físicas, UNAM  | fax:(52)(777)317-5388     `>/   /\
Av. Universidad s/n CP 62210         |                           (*)/\/  \
Cuernavaca, Morelos, México          | moc...@fis.unam.mx   /\_/\__/
GPG: 791EB9EB, C949 3F81 6D9B 1191 9A16  C2DF 5F0A C52B 791E B9EB


_______________________________________________
pdl-devel mailing list
pdl-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-devel

Reply via email to