diff options
| author | Jens Renders <jens.renders@uantwerpen.be> | 2021-03-24 22:44:51 +0100 | 
|---|---|---|
| committer | Jens Renders <jens.renders@uantwerpen.be> | 2021-03-24 22:44:51 +0100 | 
| commit | e89c69e109b11131d49950e59af192b556a2c425 (patch) | |
| tree | d2be333cb10a85dab133c0988cb388974779a3d6 /python/astra | |
| parent | c02ff2d5f1f8b64525ea3bd5a6552e88b46baa9a (diff) | |
Implemented _adjoint of OpTomo by equating it to _transpose
Diffstat (limited to 'python/astra')
| -rw-r--r-- | python/astra/optomo.py | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/python/astra/optomo.py b/python/astra/optomo.py index ff67791..5ecff8f 100644 --- a/python/astra/optomo.py +++ b/python/astra/optomo.py @@ -95,6 +95,9 @@ class OpTomo(scipy.sparse.linalg.LinearOperator):      def _transpose(self):          return self.transposeOpTomo +    # real operator +    _adjoint = _transpose +      def __checkArray(self, arr, shp):          if len(arr.shape)==1:              arr = arr.reshape(shp) @@ -249,6 +252,9 @@ class OpTomoTranspose(scipy.sparse.linalg.LinearOperator):      def _transpose(self):          return self.parent +    # real operator +    _adjoint = _transpose +      def __mul__(self,s):          # Catch the case of a backprojection of 2D/3D data          if isinstance(s, np.ndarray) and s.shape==self.parent.sshape: | 
