Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/n/i/nipy-0.3.0/nipy/algorithms/utils/tests/test_fast_distance.py   nipy(Download)
from numpy.testing import assert_almost_equal
 
from ..fast_distance import euclidean_distance as ed 
 
def test_euclidean_1():
    X = np.random.randn(nx, 2)
    Y = np.random.randn(ny, 2)
    ED = ed(X, Y)
    ref = np.zeros((nx, ny))
    for i in range(nx):
    nx = 10
    X = np.random.randn(nx, 2)
    ED = ed(X)
    ref = np.zeros((nx, nx))
    for i in range(nx):