numpy boolean array with 1 bit entries

Is there a way in numpy to create an array of booleans that uses just 1 bit for each entry?

The standard np.bool type is 1 byte, but this way I use 8 times the required memory.

On Google I found that C++ has std::vector.

31
задан Tunaki 25 September 2016 в 21:46
поделиться