Mentions légales du service

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

Fix pyfaust LazyLinearOp.imag ; it must be real.

parent 4d08e24c
Branches
Tags
No related merge requests found
......@@ -873,7 +873,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) \
(self @ (1j * o.imag)).imag if isinstance(o, np.ndarray) \
or issparse(o) else imag(self @ o),
'H': lambda: self.T.imag,
'T': lambda: self.T.imag,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment