I recently wrote function to manually broadcast an ndarray to a given shape
according to numpy's broadcasting rules (using strides):
https://github.com/xray/xray/commit/7aee4a3ed2dfd3b9aff7f3c5c6c68d51df2e3ff3
The same functionality can be done pretty straightforwardly with
np.broadcast_arrays, bu
Just wondering why there is no `np.divmod` corresponding
to `ndarray.__divmod__`? (I realize one can just use
`divmod`.) Couldn't the `out` argument be useful?
Thanks,
Alan Isaac
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.
I'm using `packbits` to store directed graphs.
I save the packed arrays as .npy files for later use.
(I had hoped that .npy files for boolean arrays
might be packed, but this is not true -- not sure why.)
Because of the zero padding, to recover them
after `unpackbits`, I need the graph dimensions