Commit 568ad12a authored by Philipp Arras's avatar Philipp Arras
Browse files

Cosmetics

parent e7da3d40
......@@ -62,7 +62,7 @@ class SandwichOperator(EndomorphicOperator):
else:
op = bun.adjoint(cheese(bun))
# if our sandwich is diagonal, we can return immediately
# If our sandwich is diagonal, we can return immediately
if isinstance(op, (ScalingOperator, DiagonalOperator)):
return op
return SandwichOperator(bun, cheese, op, _callingfrommake=True)
......
......@@ -91,9 +91,6 @@ class ScalingOperator(EndomorphicOperator):
raise ValueError("operator not positive definite")
return 1./np.sqrt(fct) if from_inverse else np.sqrt(fct)
# def process_sample(self, samp, from_inverse):
# return samp*self._get_fct(from_inverse)
def draw_sample(self, from_inverse=False, dtype=np.float64):
from ..sugar import from_random
return from_random(random_type="normal", domain=self._domain,
......
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