mirror of
https://github.com/davrot/pytutorial.git
synced 2025-04-16 12:16:42 +02:00
Create README.md
Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
This commit is contained in:
parent
a900626fb5
commit
f6badaf29b
1 changed files with 31 additions and 0 deletions
31
numpy/ravel_unravel/README.md
Normal file
31
numpy/ravel_unravel/README.md
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
# Ravel and UnRavel
|
||||||
|
{:.no_toc}
|
||||||
|
|
||||||
|
<nav markdown="1" class="toc-class">
|
||||||
|
* TOC
|
||||||
|
{:toc}
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
## Top
|
||||||
|
|
||||||
|
Questions to [David Rotermund](mailto:davrot@uni-bremen.de)
|
||||||
|
|
||||||
|
## [numpy.ravel_multi_index](https://numpy.org/doc/stable/reference/generated/numpy.ravel_multi_index.html)
|
||||||
|
|
||||||
|
```python
|
||||||
|
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](https://numpy.org/doc/stable/reference/generated/numpy.unravel_index.html)
|
||||||
|
|
||||||
|
```python
|
||||||
|
numpy.unravel_index(indices, shape, order='C')
|
||||||
|
```
|
||||||
|
|
||||||
|
> Converts a flat index or array of flat indices into a tuple of coordinate arrays.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue