lar.any() and lar.all() return wrong dtype with size=0 input #65

Closed
kwgoodman opened this Issue Mar 20, 2013 · 0 comments

Projects

None yet

1 participant

@kwgoodman
Owner

When shape of input contains a zero, lar.any() and lar.all() may return the wrong dtype (depending on the value of axis). For example the following should return bool dtype:

In [1]: la.ones((0,2)).any(axis=1).dtype
Out[1]: dtype('float64')
@kwgoodman kwgoodman closed this in 2b3c1ad Mar 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment