Beispiel #1
0
def test_vector_get_int32():
    x = (100*np.random.rand(n)).astype('int32')
    i = np.random.randint(n)
    xi = fb.vector_get(x, i)
    assert_equal(xi, x[i])
Beispiel #2
0
def test_vector_get():
    x = np.random.rand(n)
    i = np.random.randint(n)
    xi = fb.vector_get(x, i)
    assert_equal(xi, x[i])