Lines Matching refs:ex1
1075 ex1 = ndarray(_items, format=fmt, flags=flags,
1077 ex2 = ex1[::-2] if shape else None
1079 m1 = memoryview(ex1)
1082 if ex1.ndim == 0 or (ex1.ndim == 1 and shape and strides):
1083 self.assertEqual(m1, ex1)
1089 self.verify_getbuf(ex1, ex1, req|bits)
1090 self.verify_getbuf(ex1, m1, req|bits)
1250 ex1 = ndarray([1,2,3], shape=[3], format='L')
1251 ex2 = ndarray(ex1)
3091 ex1 = ndarray(list(range(12)), shape=[12], strides=[-1], offset=11,
3094 m1 = memoryview(ex1)
3097 ex1[2:5] = ex1[2:5]
3100 self.assertEqual(m1, ex1)
3103 ex1[1:3][::-1] = ex2[0:2][::1]
3106 self.assertEqual(m1, ex1)
3109 ex1[4:1:-2][::-1] = ex1[1:4:2][::1]
3112 self.assertEqual(m1, ex1)
3607 ex1 = ndarray(list(range(40)), shape=[5, 8], format='@I')
3608 nd1 = ex1[3:1:-1, ::-2]
3621 ex1 = ndarray([(2**31-1, -2**31)]*22, shape=[11, 2], format='=ii')
3622 nd1 = ex1[3:1:-1, ::-2]
3635 ex1 = ndarray(list(range(30)), shape=[2, 3, 5], format='b')
3636 nd1 = ex1[1:3:, ::-2]
3649 ex1 = ndarray(list(range(30)), shape=[2, 3, 5], format='B')
3650 nd1 = ex1[1:3:, ::-2]
3663 ex1 = ndarray([(2, b'123')]*30, shape=[5, 3, 2], format='b3s')
3664 nd1 = ex1[1:3:, ::-2]
3732 ex1 = ndarray(list(range(40)), shape=[5, 8], format='@I')
3733 nd1 = ex1[3:1:-1, ::-2]
3746 ex1 = ndarray([(2**64-1, -1)]*40, shape=[5, 8], format='=Qq',
3748 ex1[2][7] = (1, -2)
3749 nd1 = ex1[3:1:-1, ::-2]
3766 ex1 = ndarray(list(range(30)), shape=[2, 3, 5], format='b',
3768 nd1 = ex1[1:3:, ::-2]
3781 ex1 = ndarray([(2**8-1, -1)]*40, shape=[2, 3, 5], format='Bb',
3783 nd1 = ex1[1:2:, ::-2]
3798 ex1 = ndarray(list(range(30)), shape=[5, 3, 2], format='i', flags=ND_PIL)
3799 nd1 = ex1[1:3:, ::-2]
3812 ex1 = ndarray([(b'hello', b'', 1)]*27, shape=[3, 3, 3], format='5s0sP',
3814 ex1[1][2][2] = (b'sushi', b'', 1)
3815 nd1 = ex1[1:3:, ::-2]
3819 ex1[1][2][2] = (b'sushi', b'', 1)