News

Efficient initialization of NumPy arrays will significantly improve performance of your scripts: Utilize functions like np.zeros, np.ones, np.empty, and np.arange which are optimized for performance.
An occasional problem I run into is that when reading an HDF5 dataset with h5py and converting it to a numpy array, a large fraction of the output array is replaced with zeros. This appears to only be ...