[Scipy-tickets] [SciPy] #1328: scipy.spatial.distance.sqeuclidean broken: Invalid results

SciPy Trac scipy-tickets@scipy....
Sun Jun 12 13:05:03 CDT 2011


#1328: scipy.spatial.distance.sqeuclidean broken: Invalid results
------------------------------------------------------------------------------------+
 Reporter:  stefan_r                                                                |       Owner:  peridot     
     Type:  defect                                                                  |      Status:  needs_review
 Priority:  normal                                                                  |   Milestone:  0.10.0      
Component:  scipy.spatial                                                           |     Version:  0.8.0       
 Keywords:  squared euclidean distance,distance,scipy.spatial.distance.sqeuclidean  |  
------------------------------------------------------------------------------------+

Comment(by warren.weckesser):

 OK, I'll bring back my first attempt to fix this, and implement the rule
 that Ralf suggests: the distance functions should handle "1-D-like"
 inputs.  One definition of "1-D-like" is squeeze(x).ndim == 1.

 (The broadcasting enhancement that I have in mind can be implemented
 later, and can be made backwards compatible by interpreting the None value
 of the new 'axis' keyword to mean the old ("1-D-like") behavior.)

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1328#comment:11>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list