Browse Source

Numpy

pull/10/head
Jure Šorn 6 years ago
parent
commit
4862dd6e29
1 changed files with 3 additions and 2 deletions
  1. 5
      README.md

5
README.md

@ -1716,19 +1716,20 @@ import numpy as np
<array> = np.random.randint(from_inclusive, to_exclusive, <shape>)
```
#### Shape is a tuple of dimension sizes.
```python
<array>.shape = <shape>
<view> = <array>.reshape(<shape>)
<view> = np.broadcast_to(<array>, <shape>)
```
#### Axis is an index of dimension, that gets collapsed.
```python
<array> = <array>.sum(<axis>)
<array> = <array>.argmin(<axis>)
```
* **Shape is a tuple of dimension sizes.**
* **Axis is an index of dimension, that gets collapsed.**
### Indexing
#### Basic indexing:
```bash

Loading…
Cancel
Save