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

SciPy Trac scipy-tickets@scipy....
Wed Jun 8 17:16:26 CDT 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  |  
------------------------------------------------------------------------------------+

Comment(by warren.weckesser):

 Replying to [comment:5 rgommers]:
 > Warren, your branch disappeared. Did you commit it?

 Ah, sorry, I should have commented here.  I decided that my fix wasn't the
 correct approach.  On the mailing list, Josef suggested that the
 calculations should be vectorized, and I think he's right--they can be
 modified to handle broadcasting in a natural way. But my "fix" didn't
 broadcast; in fact, it flattened the arguments, making it impossible to
 broadcast.  Since it was basically the wrong approach, I silently removed
 my branch.

 Making a broadcasting version is probably not a lot harder than what I
 did, but (if I recall correctly), it might result in an API change.

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


More information about the Scipy-tickets mailing list