Lines Matching refs:shape
26 self.assertEqual(m.shape, expected.shape)
79 arr = ndarray(list(range(12)), shape=(4, 3), format='<i')
91 arr = ndarray(list(range(12)), shape=(3, 4), strides=(4, 12), format='<i')
113 arr = ndarray(list(range(3)), shape=(3,), format='<h')
117 arr = ndarray(list(range(6)), shape=(2, 3), format='<h')
121 arr = ndarray(list(range(6)), shape=(2, 3), strides=(2, 4),
127 arr = ndarray(456, shape=(), format='<i')
139 arr = ndarray(list(range(6)), shape=(6,), format='<i')[::2]
142 arr = ndarray(list(range(12)), shape=(4, 3), format='<i')[::2]