Last active
July 26, 2021 02:30
-
-
Save raganmd/6f38f0241829a620931ebe729ae0240b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy | |
def numpyDist(point1, point2): | |
p1 = numpy.array(point1) | |
p2 = numpy.array(point2) | |
return numpy.linalg.norm(p1-p2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment