(self)
| 3715 | self.assert_partitioned(np.array(d)[p], [1]) |
| 3716 | |
| 3717 | def test_flatten(self): |
| 3718 | x0 = np.array([[1, 2, 3], [4, 5, 6]], np.int32) |
| 3719 | x1 = np.array([[[1, 2], [3, 4]], [[5, 6], [7, 8]]], np.int32) |
| 3720 | y0 = np.array([1, 2, 3, 4, 5, 6], np.int32) |
| 3721 | y0f = np.array([1, 4, 2, 5, 3, 6], np.int32) |
| 3722 | y1 = np.array([1, 2, 3, 4, 5, 6, 7, 8], np.int32) |
| 3723 | y1f = np.array([1, 5, 3, 7, 2, 6, 4, 8], np.int32) |
| 3724 | assert_equal(x0.flatten(), y0) |
| 3725 | assert_equal(x0.flatten('F'), y0f) |
| 3726 | assert_equal(x0.flatten('F'), x0.T.flatten()) |
| 3727 | assert_equal(x1.flatten(), y1) |
| 3728 | assert_equal(x1.flatten('F'), y1f) |
| 3729 | assert_equal(x1.flatten('F'), x1.T.flatten()) |
| 3730 | |
| 3731 | @pytest.mark.parametrize('func', (np.dot, np.matmul)) |
| 3732 | def test_arr_mult(self, func): |
nothing calls this directly
no test coverage detected