[Numpy-tickets] [NumPy] #559: var() on a size=1 array should raise exception.

NumPy numpy-tickets@scipy....
Fri Sep 21 11:47:56 CDT 2007


#559: var() on a size=1 array should raise exception.
--------------------+-------------------------------------------------------
 Reporter:  gpk     |        Owner:  somebody     
     Type:  defect  |       Status:  closed       
 Priority:  normal  |    Milestone:  1.0.4 Release
Component:  Other   |      Version:  none         
 Severity:  normal  |   Resolution:  invalid      
 Keywords:          |  
--------------------+-------------------------------------------------------
Changes (by oliphant):

  * status:  new => closed
  * resolution:  => invalid

Comment:

 We are going to leave this for now.  In NumPy when divide-by-zero is
 encountered and inf is returned instead of an exception.  There should be
 an obviously good reason to change this default.

-- 
Ticket URL: <http://scipy.org/scipy/numpy/ticket/559#comment:3>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list