(self)
| 695 | assert_array_equal(np.kron(a, b), k) |
| 696 | |
| 697 | def test_kron_ma(self): |
| 698 | x = np.ma.array([[1, 2], [3, 4]], mask=[[0, 1], [1, 0]]) |
| 699 | k = np.ma.array(np.diag([1, 4, 4, 16]), |
| 700 | mask=~np.array(np.identity(4), dtype=bool)) |
| 701 | |
| 702 | assert_array_equal(k, np.kron(x, x)) |
| 703 | |
| 704 | @pytest.mark.parametrize( |
| 705 | "shape_a,shape_b", [ |
nothing calls this directly
no test coverage detected