Lines Matching refs:nd1
3231 nd1 = ndarray(1729, shape=[], format='@L')
3233 v = memoryview(nd1)
3239 self.assertEqual(w, nd1)
3240 self.assertEqual(nd1, w)
3250 self.assertNotEqual(w, nd1)
3251 self.assertNotEqual(nd1, w)
3265 nd1 = ndarray((1729, 1.2, b'12345'), shape=[], format='Lf5s')
3268 v = memoryview(nd1)
3274 self.assertEqual(w, nd1)
3275 self.assertEqual(nd1, w)
3278 nd1 = ndarray((1729, 1.2, b'12345'), shape=[], format='Lf5s')
3281 v = memoryview(nd1)
3287 self.assertNotEqual(w, nd1)
3288 self.assertNotEqual(nd1, w)
3289 self.assertEqual(v, nd1)
3295 nd1 = ndarray([-529, 576, -625, 676, -729], shape=[5], format='@h')
3297 v = memoryview(nd1)
3300 self.assertEqual(v, nd1)
3303 self.assertNotEqual(w, nd1)
3307 nd1 = ndarray([-529, 576, -625, 676, -729], shape=[5], format='<i')
3309 v = memoryview(nd1)
3312 self.assertEqual(v, nd1)
3315 self.assertNotEqual(w, nd1)
3319 nd1 = ndarray([-529, -625, -729], shape=[3], format='@h')
3321 v = memoryview(nd1)
3325 self.assertEqual(w[::2], nd1)
3330 nd1 = ndarray([-529, -625, -729], shape=[3], format='!h')
3332 v = memoryview(nd1)
3336 self.assertEqual(w[::2], nd1)
3341 nd1 = ndarray([-529, -625, -729], shape=[3], format='@h')
3344 v = memoryview(nd1)
3348 self.assertEqual(w[::2], nd1)
3353 nd1 = ndarray([-529, -625, -729], shape=[3], format='h 0c')
3356 v = memoryview(nd1)
3360 self.assertEqual(w[::2], nd1)
3367 nd1 = ndarray([900, 961], shape=[0], format='@h')
3369 v = memoryview(nd1)
3372 self.assertEqual(v, nd1)
3375 self.assertEqual(w, nd1)
3379 nd1 = ndarray([900, 961], shape=[0], format='= h0c')
3381 v = memoryview(nd1)
3384 self.assertEqual(v, nd1)
3387 self.assertEqual(w, nd1)
3393 nd1 = ndarray([900, 900, 900, 900], shape=[4], format='@L')
3395 v = memoryview(nd1)
3398 self.assertEqual(v, nd1)
3401 self.assertEqual(w, nd1)
3405 nd1 = ndarray([(900, 900)]*4, shape=[4], format='@ Li')
3407 v = memoryview(nd1)
3410 self.assertEqual(v, nd1)
3413 self.assertEqual(w, nd1)
3447 nd1 = ndarray(list(range(-15, 15)), shape=[3, 2, 5], format='@h')
3449 v = memoryview(nd1)
3452 self.assertEqual(v, nd1)
3455 self.assertNotEqual(w, nd1)
3459 nd1 = ndarray([(0, 1, 2)]*30, shape=[3, 2, 5], format='=f q xxL')
3461 v = memoryview(nd1)
3464 self.assertEqual(v, nd1)
3467 self.assertNotEqual(w, nd1)
3471 nd1 = ndarray(list(range(30)), shape=[2, 3, 5], format='L')
3473 v = memoryview(nd1)
3476 self.assertEqual(v, nd1)
3479 self.assertNotEqual(w, nd1)
3483 nd1 = ndarray([(0, 1, 2)]*21, shape=[3, 7], format='! b B xL')
3485 v = memoryview(nd1)
3488 self.assertEqual(v, nd1)
3491 self.assertNotEqual(w, nd1)
3495 nd1 = ndarray(list(range(30)), shape=[2, 3, 5], format='L')
3497 v = memoryview(nd1)
3500 self.assertEqual(v, nd1)
3503 self.assertEqual(w, nd1)
3509 nd1 = ndarray(list(range(-15, 15)), shape=[5, 2, 3], format='@h',
3513 v = memoryview(nd1)
3516 self.assertEqual(v, nd1)
3519 self.assertNotEqual(w, nd1)
3523 nd1 = ndarray([(2**64-1, -1)]*6, shape=[2, 3], format='=Qq',
3527 v = memoryview(nd1)
3530 self.assertEqual(v, nd1)
3533 self.assertNotEqual(w, nd1)
3537 nd1 = ndarray(list(range(-15, 15)), shape=[2, 3, 5], format='l',
3541 v = memoryview(nd1)
3544 self.assertEqual(v, nd1)
3547 self.assertNotEqual(w, nd1)
3551 nd1 = ndarray(list(range(-15, 15)), shape=[2, 3, 5], format='0ll',
3555 v = memoryview(nd1)
3558 self.assertEqual(v, nd1)
3561 self.assertNotEqual(w, nd1)
3565 nd1 = ndarray(list(range(30)), shape=[5, 2, 3], format='@h',
3569 v = memoryview(nd1)
3572 self.assertEqual(v, nd1)
3575 self.assertEqual(w, nd1)
3583 nd1 = ndarray(lst1, shape=[3, 2, 5], format='@l')
3585 v = memoryview(nd1)
3588 self.assertEqual(v, nd1)
3596 nd1 = ndarray(lst1, shape=[3, 2, 5], format='d b c')
3598 v = memoryview(nd1)
3601 self.assertEqual(v, nd1)
3607 nd1 = ex1[3:1:-1, ::-2]
3610 v = memoryview(nd1)
3613 self.assertEqual(v, nd1)
3616 self.assertNotEqual(w, nd1)
3621 nd1 = ex1[3:1:-1, ::-2]
3624 v = memoryview(nd1)
3627 self.assertEqual(v, nd1)
3630 self.assertEqual(w, nd1)
3635 nd1 = ex1[1:3:, ::-2]
3638 v = memoryview(nd1)
3641 self.assertEqual(v, nd1)
3644 self.assertNotEqual(w, nd1)
3649 nd1 = ex1[1:3:, ::-2]
3652 v = memoryview(nd1)
3655 self.assertEqual(v, nd1)
3658 self.assertNotEqual(w, nd1)
3663 nd1 = ex1[1:3:, ::-2]
3666 v = memoryview(nd1)
3669 self.assertEqual(v, nd1)
3672 self.assertNotEqual(w, nd1)
3678 nd1 = ndarray(list(range(30)), shape=[0, 3, 2], format='i')
3680 v = memoryview(nd1)
3683 self.assertEqual(v, nd1)
3686 self.assertNotEqual(w, nd1)
3690 nd1 = ndarray(list(range(30)), shape=[0, 3, 2], format='i')
3692 v = memoryview(nd1)
3695 self.assertEqual(v, nd1)
3698 self.assertNotEqual(w, nd1)
3704 nd1 = ndarray([900]*80, shape=[4, 5, 4], format='@L')
3706 v = memoryview(nd1)
3709 self.assertEqual(v, nd1)
3712 self.assertEqual(w, nd1)
3717 nd1 = ndarray([(1, 2)]*10, shape=[2, 5], format='=lQ')
3719 v = memoryview(nd1)
3722 self.assertEqual(v, nd1)
3725 self.assertEqual(w, nd1)
3732 nd1 = ex1[3:1:-1, ::-2]
3735 v = memoryview(nd1)
3738 self.assertEqual(v, nd1)
3741 self.assertNotEqual(w, nd1)
3748 nd1 = ex1[3:1:-1, ::-2]
3755 v = memoryview(nd1)
3758 self.assertEqual(v, nd1)
3761 self.assertEqual(w, nd1)
3767 nd1 = ex1[1:3:, ::-2]
3770 v = memoryview(nd1)
3773 self.assertEqual(v, nd1)
3776 self.assertNotEqual(w, nd1)
3782 nd1 = ex1[1:2:, ::-2]
3787 v = memoryview(nd1)
3790 self.assertEqual(v, nd1)
3793 self.assertNotEqual(w, nd1)
3798 nd1 = ex1[1:3:, ::-2]
3801 v = memoryview(nd1)
3804 self.assertEqual(v, nd1)
3807 self.assertEqual(w, nd1)
3814 nd1 = ex1[1:3:, ::-2]
3821 v = memoryview(nd1)
3824 self.assertEqual(v, nd1)
3827 self.assertNotEqual(w, nd1)
3833 nd1 = ndarray(lst1, shape=[3, 2, 5], format='@l', flags=ND_PIL)
3835 v = memoryview(nd1)
3838 self.assertEqual(v, nd1)
3847 nd1 = ndarray(lst1, shape=[3, 2, 5], format='< 10p 9p d', flags=ND_PIL)
3850 v = memoryview(nd1)
3853 self.assertEqual(v, nd1)
4180 nd1 = ndarray(m, getbuf=PyBUF_FULL_RO, flags=ND_REDIRECT)
4181 nd2 = ndarray(nd1, getbuf=PyBUF_FULL_RO, flags=ND_REDIRECT)
4184 del nd1, nd2
4200 nd1 = ndarray(m2, getbuf=PyBUF_FULL_RO, flags=ND_REDIRECT)
4201 nd2 = ndarray(nd1, getbuf=PyBUF_FULL_RO, flags=ND_REDIRECT)
4205 del nd1, nd2