Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 8bad959b authored by hhakim's avatar hhakim
Browse files

Add a unit test for pyfaust LazyLinearOp matmtul by a numpy ndarray.

parent 049e884b
Branches
Tags
No related merge requests found
......@@ -110,6 +110,10 @@ class TestLazyLinearOpFaust(unittest.TestCase):
self.assertAlmostEqual(LA.norm(lmul3 - (M @ M.T)),
0)
# test multiplication of a sequence of matrices
M = np.random.rand(2, 3, 4, self.lop.shape[1], 15)
np.allclose(self.lop.toarray() @ M, self.lop.toarray() @ M)
def test_rmatmul(self):
M = np.random.rand(15, self.lop.shape[0])
lmul2 = M @ self.lop
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment