(self)
| 724 | assert_array_equal(np.kron(a, b), k) |
| 725 | |
| 726 | def test_kron_ma(self): |
| 727 | x = np.ma.array([[1, 2], [3, 4]], mask=[[0, 1], [1, 0]]) |
| 728 | k = np.ma.array(np.diag([1, 4, 4, 16]), |
| 729 | mask=~np.array(np.identity(4), dtype=bool)) |
| 730 | |
| 731 | assert_array_equal(k, np.kron(x, x)) |
| 732 | |
| 733 | @pytest.mark.parametrize( |
| 734 | "shape_a,shape_b", [ |
nothing calls this directly
no test coverage detected