(self)
| 749 | assert_equal(d, (3, 2, 0)) |
| 750 | |
| 751 | def test_kroncompare(self): |
| 752 | from numpy.random import randint |
| 753 | |
| 754 | reps = [(2,), (1, 2), (2, 1), (2, 2), (2, 3, 2), (3, 2)] |
| 755 | shape = [(3,), (2, 3), (3, 4, 3), (3, 2, 3), (4, 3, 2, 4), (2, 2)] |
| 756 | for s in shape: |
| 757 | b = randint(0, 10, size=s) |
| 758 | for r in reps: |
| 759 | a = np.ones(r, b.dtype) |
| 760 | large = tile(b, r) |
| 761 | klarge = kron(a, b) |
| 762 | assert_equal(large, klarge) |
| 763 | |
| 764 | |
| 765 | class TestMayShareMemory: |
nothing calls this directly
no test coverage detected