Mentions légales du service

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

Fix pyfaust.lazylinop.eye in case k=0.

parent 319668fb
Branches
Tags
No related merge requests found
......@@ -1093,8 +1093,6 @@ def eye(m, n=None, k=0, dtype='float'):
nonlocal dtype # TODO: take dtype into account
if n != x.shape[0]:
raise ValueError('Dimensions must agree')
if k == 0:
return x[:m]
if x.ndim == 1:
x = x.reshape(x.size, 1)
x_1dim = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment