Python: NumPy Maximum Dimensions!

Publicado em: 06 Junho 2020
no canal de: __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


Nesta página do site você pode assistir ao vídeo on-line Python: NumPy Maximum Dimensions! duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário __init_ one underscore 06 Junho 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 54 vezes e gostou 0 espectadores. Boa visualização!