pytutorial/numpy/ravel_unravel
David Rotermund f6badaf29b
Create README.md
Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
2023-12-30 19:14:46 +01:00
..
README.md Create README.md 2023-12-30 19:14:46 +01:00

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.