def test_getitem_with_slice_from_2D_functional_array_2():
def test_function(i, j):
return i * i + 2 * i * j + 3
m = larray(test_function, shape=(3, 15))
assert_array_equal(m[:, 3:14:3],
numpy.fromfunction(test_function, shape=(3, 15))[:, 3:14:3])
评论列表
文章目录