Mentions légales du service

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

Fix a bug in LazyLinearOperator occurring when applying to a 1d vector a lazy...

Fix a bug in LazyLinearOperator occurring when applying to a 1d vector a lazy op defined upon a matvec function.
parent ec69f323
No related branches found
No related tags found
No related merge requests found
......@@ -958,6 +958,9 @@ def LazyLinearOperator(shape, **kwargs):
' passed in kwargs.')
def _matmat(M, _matvec):
if M.ndim == 1:
return _matvec(M)
out = np.empty((shape[0], M.shape[1]), dtype=dtype if dtype is not None
else M.dtype)
for i in range(M.shape[1]):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment