(self)
| 2144 | assert_equal(multi_dot([A1d, B, C, D]).shape, (2,)) |
| 2145 | |
| 2146 | def test_vector_as_last_argument(self): |
| 2147 | # The last argument can be 1-D |
| 2148 | A = np.random.random((6, 2)) |
| 2149 | B = np.random.random((2, 6)) |
| 2150 | C = np.random.random((6, 2)) |
| 2151 | D1d = np.random.random(2) # 1-D |
| 2152 | |
| 2153 | # the result should be 1-D |
| 2154 | assert_equal(multi_dot([A, B, C, D1d]).shape, (6,)) |
| 2155 | |
| 2156 | def test_vector_as_first_and_last_argument(self): |
| 2157 | # The first and last arguments can be 1-D |
nothing calls this directly
no test coverage detected