Mentions légales du service

Skip to content
Snippets Groups Projects
Commit a4cf611e authored by hhakim's avatar hhakim
Browse files

Fix lazylinop.LazyLinearOp.imag multiplication lambda.

parent 208e0288
No related branches found
No related tags found
No related merge requests found
......@@ -874,7 +874,7 @@ class LazyLinearOp(LinearOperator):
from scipy.sparse import issparse
lambdas = {'@': lambda o: (self @ o.real).imag + \
1j * (self @ o.imag).imag if isinstance(o, np.ndarray) \
or issparse(o) else real(self @ o),
or issparse(o) else imag(self @ o),
'H': lambda: self.T.imag,
'T': lambda: self.T.imag,
'slice': lambda indices: self._slice(indices).imag
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment