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

SciPy Trac scipy-tickets@scipy....
Wed Mar 9 15:58:50 CST 2011

#1328: scipy.spatial.distance.sqeuclidean broken: Invalid results
 Reporter:  stefan_r                                                                |       Owner:  peridot     
     Type:  defect                                                                  |      Status:  needs_review
 Priority:  high                                                                    |   Milestone:  0.9.0       
Component:  scipy.spatial                                                           |     Version:  0.8.0       
 Keywords:  squared euclidean distance,distance,scipy.spatial.distance.sqeuclidean  |  
Changes (by warren.weckesser):

  * status:  new => needs_review


 I've uploaded a potential fix here:


 The change uses ravel() to ensure that the arguments are treated as 1D
 arrays in the distance calculations.  It also replaces some of the
 calculations with np.norm where it makes sense.

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

More information about the Scipy-tickets mailing list