Exemplo n.º 1
0
def test_convolve1d_2d():
    f = np.arange(64*4).reshape((16,-1))
    n = np.array([[.5,1.,.5],[0.,2.,0.]])
    convolve1d(f, n, 0)
Exemplo n.º 2
0
def test_convolve1d_2d():
    f = np.arange(64 * 4).reshape((16, -1))
    n = np.array([[.5, 1., .5], [0., 2., 0.]])
    convolve1d(f, n, 0)
Exemplo n.º 3
0
def test_convolve1d_shape():
    f = np.arange(64*4).reshape((16,-1))
    n = [.5,1.,.5]
    for axis in (0,1):
        g = convolve1d(f, n, axis)
        assert g.shape == f.shape
Exemplo n.º 4
0
def test_convolve1d():
    f = np.arange(64 * 4).reshape((16, -1))
    n = [.5, 1., .5]
    for axis in (0, 1):
        g = convolve1d(f, n, axis)
        assert g.shape == f.shape