[NumPy-Tickets] [NumPy] #1884: polyval turns masked array into array

NumPy Trac numpy-tickets@scipy....
Tue Jun 28 17:51:59 CDT 2011


#1884: polyval turns masked array into array
----------------------+-----------------------------------------------------
 Reporter:  mauro     |       Owner:  pierregm   
     Type:  defect    |      Status:  new        
 Priority:  normal    |   Milestone:  Unscheduled
Component:  numpy.ma  |     Version:  1.5.1      
 Keywords:            |  
----------------------+-----------------------------------------------------
 When using a masked array as input for polyval, then the return is an
 array.  I think it should be a masked array again (or at least document it
 that it is not).

 The fix seems easy, remove the line
 x = NX.asarray(x)
 from np.lib.polyval.  But presumably that line is there for a reason...

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1884>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list