Lines Matching refs:a1
186 a1 = np.array([1, 2], dtype=np.int16)
187 assert a1.flags.owndata and a1.base is None
188 a2 = m.wrap(a1)
189 assert_references(a1, a2)
191 a1 = np.array([[1, 2], [3, 4]], dtype=np.float32, order='F')
192 assert a1.flags.owndata and a1.base is None
193 a2 = m.wrap(a1)
194 assert_references(a1, a2)
196 a1 = np.array([[1, 2], [3, 4]], dtype=np.float32, order='C')
197 a1.flags.writeable = False
198 a2 = m.wrap(a1)
199 assert_references(a1, a2)
201 a1 = np.random.random((4, 4, 4))
202 a2 = m.wrap(a1)
203 assert_references(a1, a2)
205 a1t = a1.transpose()
207 assert_references(a1t, a2, a1)
209 a1d = a1.diagonal()
211 assert_references(a1d, a2, a1)
213 a1m = a1[::-1, ::-1, ::-1]
215 assert_references(a1m, a2, a1)