Timeline for What does -1 mean in numpy reshape?
Current License: CC BY-SA 4.0
Post Revisions
22 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 21, 2022 at 23:46 | comment | added | rishi jain | It is quite simple, -1 means 'whatever it takes' to flatten. So, in the above example, a.reshape(2,-1) would mean 2*4, a.reshape(4,-1) would mean 4*2, a.reshape(2,2,-1) would mean 2,2,2 and just a.reshape(-1) would mean 8 | |
| Jun 13, 2022 at 7:32 | history | edited | Mateen Ulhaq | CC BY-SA 4.0 |
REPL notation.
|
| Jun 13, 2022 at 7:24 | history | edited | Mateen Ulhaq | CC BY-SA 4.0 |
Shorten. Also, matrix has not been supported for many years. Convert (trivially) to ndarray.
|
| Apr 5, 2022 at 13:40 | answer | added | End genocide - save Gaza | timeline score: 1 | |
| Jul 21, 2021 at 6:51 | answer | added | Lucas | timeline score: 1 | |
| Jan 26, 2021 at 2:46 | answer | added | Sida Zhou | timeline score: 4 | |
| May 26, 2020 at 21:00 | answer | added | deepjyoti22 | timeline score: 17 | |
| Apr 10, 2020 at 5:40 | answer | added | Scott | timeline score: 10 | |
| Dec 5, 2019 at 7:19 | history | edited | kmario23 |
edited tags
|
|
| Nov 27, 2019 at 13:12 | answer | added | lonewolf | timeline score: 23 | |
| Jul 5, 2019 at 9:50 | history | protected | Sheldore | ||
| Dec 8, 2018 at 15:26 | answer | added | Shawn Azdam | timeline score: 14 | |
| Mar 22, 2017 at 11:35 | answer | added | Anuj Gupta | timeline score: 118 | |
| Feb 28, 2017 at 13:48 | answer | added | Julu Ahamed | timeline score: 901 | |
| Feb 27, 2017 at 1:56 | answer | added | F0rge1cE | timeline score: 20 | |
| Jan 2, 2017 at 16:41 | answer | added | Dinesh Kumar | timeline score: 24 | |
| May 21, 2015 at 20:34 | history | edited | Alex Riley | CC BY-SA 3.0 |
minor tweaks to make wording clearer
|
| S Sep 9, 2013 at 3:45 | history | suggested | Afzaal Ahmad Zeeshan | CC BY-SA 3.0 |
fixed a bit
|
| Sep 9, 2013 at 3:43 | review | Suggested edits | |||
| S Sep 9, 2013 at 3:45 | |||||
| Sep 9, 2013 at 3:40 | review | First posts | |||
| Sep 9, 2013 at 3:43 | |||||
| Sep 9, 2013 at 3:27 | answer | added | falsetru | timeline score: 75 | |
| Sep 9, 2013 at 3:25 | history | asked | user2262504 | CC BY-SA 3.0 |