If we write, for example:
x = int8.empty(0,5)
whos x
outputs:
% Name Size Bytes Class Attributes
% x 0x5 0 int8
Thus, we obtain a 0x5
empty array of class int8
.
What is the purpose of preallocating an empty array containing a non-null dimension if its memory size is 0 bytes ?
In which case
x = int8.empty(0,5)
is more useful than
x = int8.empty(0,0)
Does int8.empty(0,5)
still preallocate 5 "slots" of memory ?