Skip to content

Commit

Permalink
Fix in linop test.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpo committed Feb 13, 2014
1 parent 108a91f commit a885a65
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_linop.py
Expand Up @@ -105,10 +105,13 @@ def test_init(self):
E = lo.LinearOperator(nargin=matvecs['shape'][0],
nargout=matvecs['shape'][1],
matvec=matvecs['matvec_transp'],
matvec_transp=matvecs['matvec'],
dtype=self.E.dtype)
x = np.random.random(E.shape[1]) + 1j * np.random.random(E.shape[1])
assert_(np.allclose(E * x, D.T * x))
assert_(np.allclose(E.H * x, E.rmatvec(x)))
assert_(E.H is not None) # E.H was inferred.
y = np.random.random(E.shape[0]) + 1j * np.random.random(E.shape[0])
assert_(np.allclose(E.H * y, E.rmatvec(y)))

F = lo.LinearOperator(nargin=matvecs['shape'][0],
nargout=matvecs['shape'][1],
Expand Down

0 comments on commit a885a65

Please sign in to comment.