diff options
Diffstat (limited to 'python/astra/optomo.py')
-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: |