DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
numpy euclidean distance matrix broadcasting
np.sqrt((np.square(a[:,np.newaxis]-b).sum(axis=2)))
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#numpy
#euclidean
#distance
#matrix
#broadcasting
ADD COMMENT
Topic
COMMENT
Name
4+7 =
Submit