[NumPy-Tickets] [NumPy] #1773: corrcoef warnings
NumPy Trac
numpy-tickets@scipy....
Wed Mar 16 05:39:15 CDT 2011
#1773: corrcoef warnings
------------------------+---------------------------------------------------
Reporter: senyai | Owner: somebody
Type: defect | Status: new
Priority: low | Milestone: Unscheduled
Component: numpy.core | Version: 1.5.1
Keywords: corrcoef |
------------------------+---------------------------------------------------
Hi. I'm pretty sure that corrcoef should not give any warnings with empty
arrays:
>>> numpy.corrcoef([])
Warning: invalid value encountered in divide
1
>>> numpy.corrcoef([],[])
Warning: invalid value encountered in divide
Warning: invalid value encountered in divide
array([[ nan, nan],
[ nan, nan]])
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1773>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list