Python: NumPy Maximum Dimensions!

Veröffentlicht am: 06 Juni 2020
auf dem Kanal: __init_ one underscore
54
0

Python: NumPy Maximum Dimensions!

By trial and error, I found the maximum dimensions of a NumPy array.

The maximum is 32 dimensions.

If you make an array of 99 dimensions, numpy.ndim will still return 32 showing 32 dimensions mixed with a list.
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[list([[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[1]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]])]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
32 dimensions!

Also, with an array of anything over 99 dimensions numpy.ndim will return a memory error.
I tested 100 dimensions and 1000 dimensions both gave MemoryError!


#NumPy #maximum #dimensions


Auf dieser Seite können Sie das Online-Video Python: NumPy Maximum Dimensions! mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer __init_ one underscore 06 Juni 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 54 Mal angesehen und es wurde von 0 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!