From e48e8c23ac200e676c8c317ae496864ea2081843 Mon Sep 17 00:00:00 2001 From: aringh Date: Wed, 25 Nov 2015 09:54:03 +0100 Subject: [PATCH] TST: Remove the oldmatrix multiplication operator. See #73, and compare commit 792b359 where it was just commented. --- test/operator/operator_test.py | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/test/operator/operator_test.py b/test/operator/operator_test.py index 64fe54a41f5..ab32f608fb9 100644 --- a/test/operator/operator_test.py +++ b/test/operator/operator_test.py @@ -184,28 +184,6 @@ def test_nonlinear_composition(): C = OperatorComp(Bop, Aop) -#class MultiplyOp(Operator): -# -# """Multiply with matrix. -# """ -# -# def __init__(self, matrix, domain=None, range=None): -# domain = (odl.Rn(matrix.shape[1]) -# if domain is None else domain) -# range = (odl.Rn(matrix.shape[0]) -# if range is None else range) -# self.matrix = matrix -# -# super().__init__(domain, range, linear=True) -# -# def _apply(self, rhs, out): -# np.dot(self.matrix, rhs.data, out=out.data) -# -# @property -# def adjoint(self): -# return MultiplyOp(self.matrix.T, self.range, self.domain) - - def test_linear_Op(): # Verify that the multiply op does indeed work as expected