Commit c926d41
committed
Updated Unique inverse output shape
In numpy 2.0, if axis=None, then np.unique
does not flatten the inverse indices returned
if return_inverse=True
The output shape has been changed to match numpy,
dependent on the version of numpy.1 parent b4ad058 commit c926d41
1 file changed
+24
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
1240 | 1241 | | |
1241 | 1242 | | |
1242 | 1243 | | |
| 1244 | + | |
1243 | 1245 | | |
1244 | 1246 | | |
| 1247 | + | |
1245 | 1248 | | |
1246 | | - | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
1247 | 1260 | | |
1248 | 1261 | | |
| 1262 | + | |
1249 | 1263 | | |
1250 | 1264 | | |
1251 | 1265 | | |
| |||
1275 | 1289 | | |
1276 | 1290 | | |
1277 | 1291 | | |
1278 | | - | |
1279 | 1292 | | |
1280 | | - | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
1281 | 1302 | | |
1282 | 1303 | | |
1283 | 1304 | | |
| |||
0 commit comments