예제 #1
0
def test_vector_set_int32():
    x = (100*np.random.rand(n)).astype('int32')
    i = np.random.randint(n)
    y = fb.vector_set(x, i, 3)
    assert_equal(3, y[i])
예제 #2
0
def test_vector_set():
    x = np.random.rand(n)
    i = np.random.randint(n)
    y = fb.vector_set(x, i, 3)
    assert_equal(3, y[i])