mirror of
https://github.com/davrot/pytutorial.git
synced 2025-04-16 12:16:42 +02:00
|
||
---|---|---|
.. | ||
README.md |
Ravel and UnRavel
{:.no_toc}
* TOC {:toc}Top
Questions to David Rotermund
numpy.ravel_multi_index
numpy.ravel_multi_index(multi_index, dims, mode='raise', order='C')
Converts a tuple of index arrays into an array of flat indices, applying boundary modes to the multi-index.
numpy.unravel_index
numpy.unravel_index(indices, shape, order='C')
Converts a flat index or array of flat indices into a tuple of coordinate arrays.