[NumPy-Tickets] [NumPy] #1396: Numpy product of zero-length array returns 1.0

NumPy Trac numpy-tickets@scipy....
Thu Feb 11 00:14:42 CST 2010


#1396: Numpy product of zero-length array returns 1.0
----------------------------------------+-----------------------------------
 Reporter:  xdylanm                     |       Owner:  somebody      
     Type:  enhancement                 |      Status:  needs_decision
 Priority:  normal                      |   Milestone:                
Component:  numpy.core                  |     Version:  1.3.0         
 Keywords:  product, prod, zero-length  |  
----------------------------------------+-----------------------------------
Changes (by stefan):

  * status:  new => needs_decision
  * type:  defect => enhancement


Comment:

 The identity element for multiplication is 1, so I don't think returning 0
 would be correct.

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


More information about the NumPy-Tickets mailing list