• Home
  • Raw
  • Download

Lines Matching refs:nd1

3232         nd1 = ndarray(1729, shape=[], format='@L')
3234 v = memoryview(nd1)
3240 self.assertEqual(w, nd1)
3241 self.assertEqual(nd1, w)
3251 self.assertNotEqual(w, nd1)
3252 self.assertNotEqual(nd1, w)
3266 nd1 = ndarray((1729, 1.2, b'12345'), shape=[], format='Lf5s')
3269 v = memoryview(nd1)
3275 self.assertEqual(w, nd1)
3276 self.assertEqual(nd1, w)
3279 nd1 = ndarray((1729, 1.2, b'12345'), shape=[], format='Lf5s')
3282 v = memoryview(nd1)
3288 self.assertNotEqual(w, nd1)
3289 self.assertNotEqual(nd1, w)
3290 self.assertEqual(v, nd1)
3296 nd1 = ndarray([-529, 576, -625, 676, -729], shape=[5], format='@h')
3298 v = memoryview(nd1)
3301 self.assertEqual(v, nd1)
3304 self.assertNotEqual(w, nd1)
3308 nd1 = ndarray([-529, 576, -625, 676, -729], shape=[5], format='<i')
3310 v = memoryview(nd1)
3313 self.assertEqual(v, nd1)
3316 self.assertNotEqual(w, nd1)
3320 nd1 = ndarray([-529, -625, -729], shape=[3], format='@h')
3322 v = memoryview(nd1)
3326 self.assertEqual(w[::2], nd1)
3331 nd1 = ndarray([-529, -625, -729], shape=[3], format='!h')
3333 v = memoryview(nd1)
3337 self.assertEqual(w[::2], nd1)
3342 nd1 = ndarray([-529, -625, -729], shape=[3], format='@h')
3345 v = memoryview(nd1)
3349 self.assertEqual(w[::2], nd1)
3354 nd1 = ndarray([-529, -625, -729], shape=[3], format='h 0c')
3357 v = memoryview(nd1)
3361 self.assertEqual(w[::2], nd1)
3368 nd1 = ndarray([900, 961], shape=[0], format='@h')
3370 v = memoryview(nd1)
3373 self.assertEqual(v, nd1)
3376 self.assertEqual(w, nd1)
3380 nd1 = ndarray([900, 961], shape=[0], format='= h0c')
3382 v = memoryview(nd1)
3385 self.assertEqual(v, nd1)
3388 self.assertEqual(w, nd1)
3394 nd1 = ndarray([900, 900, 900, 900], shape=[4], format='@L')
3396 v = memoryview(nd1)
3399 self.assertEqual(v, nd1)
3402 self.assertEqual(w, nd1)
3406 nd1 = ndarray([(900, 900)]*4, shape=[4], format='@ Li')
3408 v = memoryview(nd1)
3411 self.assertEqual(v, nd1)
3414 self.assertEqual(w, nd1)
3448 nd1 = ndarray(list(range(-15, 15)), shape=[3, 2, 5], format='@h')
3450 v = memoryview(nd1)
3453 self.assertEqual(v, nd1)
3456 self.assertNotEqual(w, nd1)
3460 nd1 = ndarray([(0, 1, 2)]*30, shape=[3, 2, 5], format='=f q xxL')
3462 v = memoryview(nd1)
3465 self.assertEqual(v, nd1)
3468 self.assertNotEqual(w, nd1)
3472 nd1 = ndarray(list(range(30)), shape=[2, 3, 5], format='L')
3474 v = memoryview(nd1)
3477 self.assertEqual(v, nd1)
3480 self.assertNotEqual(w, nd1)
3484 nd1 = ndarray([(0, 1, 2)]*21, shape=[3, 7], format='! b B xL')
3486 v = memoryview(nd1)
3489 self.assertEqual(v, nd1)
3492 self.assertNotEqual(w, nd1)
3496 nd1 = ndarray(list(range(30)), shape=[2, 3, 5], format='L')
3498 v = memoryview(nd1)
3501 self.assertEqual(v, nd1)
3504 self.assertEqual(w, nd1)
3510 nd1 = ndarray(list(range(-15, 15)), shape=[5, 2, 3], format='@h',
3514 v = memoryview(nd1)
3517 self.assertEqual(v, nd1)
3520 self.assertNotEqual(w, nd1)
3524 nd1 = ndarray([(2**64-1, -1)]*6, shape=[2, 3], format='=Qq',
3528 v = memoryview(nd1)
3531 self.assertEqual(v, nd1)
3534 self.assertNotEqual(w, nd1)
3538 nd1 = ndarray(list(range(-15, 15)), shape=[2, 3, 5], format='l',
3542 v = memoryview(nd1)
3545 self.assertEqual(v, nd1)
3548 self.assertNotEqual(w, nd1)
3552 nd1 = ndarray(list(range(-15, 15)), shape=[2, 3, 5], format='0ll',
3556 v = memoryview(nd1)
3559 self.assertEqual(v, nd1)
3562 self.assertNotEqual(w, nd1)
3566 nd1 = ndarray(list(range(30)), shape=[5, 2, 3], format='@h',
3570 v = memoryview(nd1)
3573 self.assertEqual(v, nd1)
3576 self.assertEqual(w, nd1)
3584 nd1 = ndarray(lst1, shape=[3, 2, 5], format='@l')
3586 v = memoryview(nd1)
3589 self.assertEqual(v, nd1)
3597 nd1 = ndarray(lst1, shape=[3, 2, 5], format='d b c')
3599 v = memoryview(nd1)
3602 self.assertEqual(v, nd1)
3608 nd1 = ex1[3:1:-1, ::-2]
3611 v = memoryview(nd1)
3614 self.assertEqual(v, nd1)
3617 self.assertNotEqual(w, nd1)
3622 nd1 = ex1[3:1:-1, ::-2]
3625 v = memoryview(nd1)
3628 self.assertEqual(v, nd1)
3631 self.assertEqual(w, nd1)
3636 nd1 = ex1[1:3:, ::-2]
3639 v = memoryview(nd1)
3642 self.assertEqual(v, nd1)
3645 self.assertNotEqual(w, nd1)
3650 nd1 = ex1[1:3:, ::-2]
3653 v = memoryview(nd1)
3656 self.assertEqual(v, nd1)
3659 self.assertNotEqual(w, nd1)
3664 nd1 = ex1[1:3:, ::-2]
3667 v = memoryview(nd1)
3670 self.assertEqual(v, nd1)
3673 self.assertNotEqual(w, nd1)
3679 nd1 = ndarray(list(range(30)), shape=[0, 3, 2], format='i')
3681 v = memoryview(nd1)
3684 self.assertEqual(v, nd1)
3687 self.assertNotEqual(w, nd1)
3691 nd1 = ndarray(list(range(30)), shape=[0, 3, 2], format='i')
3693 v = memoryview(nd1)
3696 self.assertEqual(v, nd1)
3699 self.assertNotEqual(w, nd1)
3705 nd1 = ndarray([900]*80, shape=[4, 5, 4], format='@L')
3707 v = memoryview(nd1)
3710 self.assertEqual(v, nd1)
3713 self.assertEqual(w, nd1)
3718 nd1 = ndarray([(1, 2)]*10, shape=[2, 5], format='=lQ')
3720 v = memoryview(nd1)
3723 self.assertEqual(v, nd1)
3726 self.assertEqual(w, nd1)
3733 nd1 = ex1[3:1:-1, ::-2]
3736 v = memoryview(nd1)
3739 self.assertEqual(v, nd1)
3742 self.assertNotEqual(w, nd1)
3749 nd1 = ex1[3:1:-1, ::-2]
3756 v = memoryview(nd1)
3759 self.assertEqual(v, nd1)
3762 self.assertEqual(w, nd1)
3768 nd1 = ex1[1:3:, ::-2]
3771 v = memoryview(nd1)
3774 self.assertEqual(v, nd1)
3777 self.assertNotEqual(w, nd1)
3783 nd1 = ex1[1:2:, ::-2]
3788 v = memoryview(nd1)
3791 self.assertEqual(v, nd1)
3794 self.assertNotEqual(w, nd1)
3799 nd1 = ex1[1:3:, ::-2]
3802 v = memoryview(nd1)
3805 self.assertEqual(v, nd1)
3808 self.assertEqual(w, nd1)
3815 nd1 = ex1[1:3:, ::-2]
3822 v = memoryview(nd1)
3825 self.assertEqual(v, nd1)
3828 self.assertNotEqual(w, nd1)
3834 nd1 = ndarray(lst1, shape=[3, 2, 5], format='@l', flags=ND_PIL)
3836 v = memoryview(nd1)
3839 self.assertEqual(v, nd1)
3848 nd1 = ndarray(lst1, shape=[3, 2, 5], format='< 10p 9p d', flags=ND_PIL)
3851 v = memoryview(nd1)
3854 self.assertEqual(v, nd1)
4181 nd1 = ndarray(m, getbuf=PyBUF_FULL_RO, flags=ND_REDIRECT)
4182 nd2 = ndarray(nd1, getbuf=PyBUF_FULL_RO, flags=ND_REDIRECT)
4185 del nd1, nd2
4201 nd1 = ndarray(m2, getbuf=PyBUF_FULL_RO, flags=ND_REDIRECT)
4202 nd2 = ndarray(nd1, getbuf=PyBUF_FULL_RO, flags=ND_REDIRECT)
4206 del nd1, nd2