Lines Matching refs:ex1
1048 ex1 = ndarray(_items, format=fmt, flags=flags,
1050 ex2 = ex1[::-2] if shape else None
1052 m1 = memoryview(ex1)
1055 if ex1.ndim == 0 or (ex1.ndim == 1 and shape and strides):
1056 self.assertEqual(m1, ex1)
1062 self.verify_getbuf(ex1, ex1, req|bits)
1063 self.verify_getbuf(ex1, m1, req|bits)
1223 ex1 = ndarray([1,2,3], shape=[3], format='L')
1224 ex2 = ndarray(ex1)
3060 ex1 = ndarray(list(range(12)), shape=[12], strides=[-1], offset=11,
3063 m1 = memoryview(ex1)
3066 ex1[2:5] = ex1[2:5]
3069 self.assertEqual(m1, ex1)
3072 ex1[1:3][::-1] = ex2[0:2][::1]
3075 self.assertEqual(m1, ex1)
3078 ex1[4:1:-2][::-1] = ex1[1:4:2][::1]
3081 self.assertEqual(m1, ex1)
3576 ex1 = ndarray(list(range(40)), shape=[5, 8], format='@I')
3577 nd1 = ex1[3:1:-1, ::-2]
3590 ex1 = ndarray([(2**31-1, -2**31)]*22, shape=[11, 2], format='=ii')
3591 nd1 = ex1[3:1:-1, ::-2]
3604 ex1 = ndarray(list(range(30)), shape=[2, 3, 5], format='b')
3605 nd1 = ex1[1:3:, ::-2]
3618 ex1 = ndarray(list(range(30)), shape=[2, 3, 5], format='B')
3619 nd1 = ex1[1:3:, ::-2]
3632 ex1 = ndarray([(2, b'123')]*30, shape=[5, 3, 2], format='b3s')
3633 nd1 = ex1[1:3:, ::-2]
3701 ex1 = ndarray(list(range(40)), shape=[5, 8], format='@I')
3702 nd1 = ex1[3:1:-1, ::-2]
3715 ex1 = ndarray([(2**64-1, -1)]*40, shape=[5, 8], format='=Qq',
3717 ex1[2][7] = (1, -2)
3718 nd1 = ex1[3:1:-1, ::-2]
3735 ex1 = ndarray(list(range(30)), shape=[2, 3, 5], format='b',
3737 nd1 = ex1[1:3:, ::-2]
3750 ex1 = ndarray([(2**8-1, -1)]*40, shape=[2, 3, 5], format='Bb',
3752 nd1 = ex1[1:2:, ::-2]
3767 ex1 = ndarray(list(range(30)), shape=[5, 3, 2], format='i', flags=ND_PIL)
3768 nd1 = ex1[1:3:, ::-2]
3781 ex1 = ndarray([(b'hello', b'', 1)]*27, shape=[3, 3, 3], format='5s0sP',
3783 ex1[1][2][2] = (b'sushi', b'', 1)
3784 nd1 = ex1[1:3:, ::-2]
3788 ex1[1][2][2] = (b'sushi', b'', 1)