summaryrefslogtreecommitdiffstats
path: root/python/astra/optomo.py
diff options
context:
space:
mode:
authorJens Renders <jens.renders@uantwerpen.be>2021-03-24 22:44:51 +0100
committerJens Renders <jens.renders@uantwerpen.be>2021-03-24 22:44:51 +0100
commite89c69e109b11131d49950e59af192b556a2c425 (patch)
treed2be333cb10a85dab133c0988cb388974779a3d6 /python/astra/optomo.py
parentc02ff2d5f1f8b64525ea3bd5a6552e88b46baa9a (diff)
downloadastra-e89c69e109b11131d49950e59af192b556a2c425.tar.gz
astra-e89c69e109b11131d49950e59af192b556a2c425.tar.bz2
astra-e89c69e109b11131d49950e59af192b556a2c425.tar.xz
astra-e89c69e109b11131d49950e59af192b556a2c425.zip
Implemented _adjoint of OpTomo by equating it to _transpose
Diffstat (limited to 'python/astra/optomo.py')
-rw-r--r--python/astra/optomo.py6
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: