You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
flatten as convinience method for stack all? #1029
There is a bunch of operations that need to be conducted on a 1D array. It could be handy to have a convinience method that mimicks numpys flatten, i.e. works along the lines:
In order to maintain a list of currently relevant issues, we mark issues as stale after a period of inactivity
If this issue remains relevant, please comment here; otherwise it will be marked as closed automatically
Activity
shoyer commentedon Oct 3, 2016
Yes, seems like a great idea to me!
feldman4 commentedon Dec 8, 2016
This is a good idea, any reason not to add linear indexing with
array.flat[:]as well?stale commentedon Jan 24, 2019
In order to maintain a list of currently relevant issues, we mark issues as stale after a period of inactivity
If this issue remains relevant, please comment here; otherwise it will be marked as closed automatically
shoyer commentedon Jan 24, 2019
We might call this
stack_all()instead -- that's closer to.stack()with alphabetical sorting.dcherian commentedon Mar 25, 2020
Solved by
.stack=[...]?mathause commentedon Mar 25, 2020
Yes indeed, good catch.
Closed by #3826