(self)
| 1988 | assert_almost_equal(multi_dot([A, B, C, D]), A.dot(B).dot(C).dot(D)) |
| 1989 | |
| 1990 | def test_vector_as_first_argument(self): |
| 1991 | # The first argument can be 1-D |
| 1992 | A1d = np.random.random(2) # 1-D |
| 1993 | B = np.random.random((2, 6)) |
| 1994 | C = np.random.random((6, 2)) |
| 1995 | D = np.random.random((2, 2)) |
| 1996 | |
| 1997 | # the result should be 1-D |
| 1998 | assert_equal(multi_dot([A1d, B, C, D]).shape, (2,)) |
| 1999 | |
| 2000 | def test_vector_as_last_argument(self): |
| 2001 | # The last argument can be 1-D |
nothing calls this directly
no test coverage detected