la.larry(np.ones((2,0,3))).sum() returns NaN

Bug #518442 reported by kwgoodman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
larry
Fix Released
Low
kwgoodman

Bug Description

After a recent bug fix, larry([]).sum() now returns 0.0.

But:

>> la.larry(np.ones((2,0,3))).sum()
   nan

So I guess I need to add another special case for any shapes that are zero.

Also, probably should make a version of empty_larry_test.py that looks at larrys of shape (2,0)

kwgoodman (kwgoodman)
Changed in larry:
importance: Undecided → Low
kwgoodman (kwgoodman)
Changed in larry:
assignee: nobody → kwgoodman (kwgoodman)
status: New → Fix Committed
kwgoodman (kwgoodman)
Changed in larry:
milestone: none → 0.2
kwgoodman (kwgoodman)
Changed in larry:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.