Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed byte size computation for numpy array
* `len(A)` returns the number of rows (which is 1024 in this case) while the total number of elements is to be retrieved with `A.size` * the exact byte size of each element can be obtained with `A.itemsize` regardless of the actual `dtype` used for the array with these changes the original size is correctly computed as 8388608 bytes which is exactly 8Mb
- Loading branch information