(self)
| 2134 | assert_almost_equal(multi_dot([A, B, C, D]), A.dot(B).dot(C).dot(D)) |
| 2135 | |
| 2136 | def test_vector_as_first_argument(self): |
| 2137 | # The first argument can be 1-D |
| 2138 | A1d = np.random.random(2) # 1-D |
| 2139 | B = np.random.random((2, 6)) |
| 2140 | C = np.random.random((6, 2)) |
| 2141 | D = np.random.random((2, 2)) |
| 2142 | |
| 2143 | # the result should be 1-D |
| 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 |
nothing calls this directly
no test coverage detected