Reputation: 25
I know that we can change the number of bits in the datatype of the int or the float, to shrink the size of the array. Ex. You can change it from
dtype='int34' --> dtype='int16'
How small can you make this data? int8/float8? Does this minimum sizeof 8 bits apply to every array, no matter its dimensions?
Upvotes: 2
Views: 2049
Reputation: 11628
Check out the documentation: It appears that the smallest platform-independent types are indeed 8 bits. The datatype is independent of the size of the array.
Upvotes: 2