Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#312 Wrong results in corner empty-set cases

critical
closed-fixed
nobody
core (120)
1
2014-01-04
2012-09-20
Craig DeForest
No

"which(pdl(0))" should yield Empty[0] but yields null. (The scalar arg should be coerced into 1-D). The construct "which(zeroes(1))" does the right thing.

Similarly, "$a=sequence(2,2); $b=$a->(:,xvals(0))" should yield a 2x0 Empty, but yields a 0 Empty.

Discussion

  • Chris Marshall
    Chris Marshall
    2013-07-06

    The first example is now fixed but the second is still broken as of PDL-2.006.

     
  • Chris Marshall
    Chris Marshall
    2013-10-10

    • status: open --> open-remind
    • Group: --> critical
    • Priority: 5 --> 1
     
  • Craig DeForest
    Craig DeForest
    2014-01-04

    • status: open-remind --> closed-fixed