Commit 2c56a2d4 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

bug fix

parent 4d24451e
...@@ -52,6 +52,7 @@ class LogRGSpace(StructuredDomain): ...@@ -52,6 +52,7 @@ class LogRGSpace(StructuredDomain):
def shape(self): def shape(self):
return self._shape return self._shape
@property
def scalar_dvol(self): def scalar_dvol(self):
return self._dvol return self._dvol
......
...@@ -64,7 +64,7 @@ class QHTOperator(LinearOperator): ...@@ -64,7 +64,7 @@ class QHTOperator(LinearOperator):
def apply(self, x, mode): def apply(self, x, mode):
self._check_input(x, mode) self._check_input(x, mode)
dom = self._domain[self._space] dom = self._domain[self._space]
x = x.val * dom.scalar_dvol() x = x.val * dom.scalar_dvol
n = self._domain.axes[self._space] n = self._domain.axes[self._space]
rng = n if mode == self.TIMES else reversed(n) rng = n if mode == self.TIMES else reversed(n)
ax = dobj.distaxis(x) ax = dobj.distaxis(x)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment