epfl-lts2 / pygsp

Graph Signal Processing in Python
https://pygsp.rtfd.io
BSD 3-Clause "New" or "Revised" License
483 stars 93 forks source link

compute_frame() does the wrong thing when G.N == Nf #73

Open pulquero opened 4 years ago

pulquero commented 4 years ago

Passing a 2D array to filter() is ambiguous when G.N == Nf. A 3D array should be used to be unambiguous, e.g.

s = np.identity(g.G.N) tig = g.filter(s[..., np.newaxis], **kwargs)