[NumPy-Tickets] [NumPy] #721: 0-dimensional boolean arrays should work as masks for array scalars

NumPy Trac numpy-tickets@scipy....
Tue Mar 22 22:51:53 CDT 2011


#721: 0-dimensional boolean arrays should work as masks for array scalars
-------------------------+--------------------------------------------------
  Reporter:  stefan      |       Owner:  oliphant   
      Type:  defect      |      Status:  closed     
  Priority:  normal      |   Milestone:  Unscheduled
 Component:  numpy.core  |     Version:  none       
Resolution:  fixed       |    Keywords:             
-------------------------+--------------------------------------------------

Comment(by oliphant):

 Right now, I don't think you can create a 0-sized, 0-dimensional array ---
 there should probably be a way to do that though, and that is what should
 be returned.  The problem is that there are lots of places that assume a
 0-dimensional array has 1-element (i.e. is a scalar).   I'm not sure where
 to put the information that this 0-dimensional array is 0-sized.

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/721#comment:8>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list