Browse Source

Numpy

pull/10/head
Jure Šorn 5 years ago
parent
commit
59a2e9d75f
1 changed files with 2 additions and 2 deletions
  1. 4
      README.md

4
README.md

@ -1714,12 +1714,12 @@ import numpy as np
```python ```python
<array> = np.array(<list>) <array> = np.array(<list>)
<array> = np.arange(from_inclusive, to_exclusive, step_size) <array> = np.arange(from_inclusive, to_exclusive, step_size)
<array> = np.ones(<shape>) # Shape is a tuple of dimension sizes.
<array> = np.ones(<shape>)
<array> = np.random.randint(from_inclusive, to_exclusive, <shape>) <array> = np.random.randint(from_inclusive, to_exclusive, <shape>)
``` ```
```python ```python
<array>.shape = <shape>
<array>.shape = <shape> # Shape is a tuple of dimension sizes.
<view> = <array>.reshape(<shape>) <view> = <array>.reshape(<shape>)
<view> = np.broadcast_to(<array>, <shape>) <view> = np.broadcast_to(<array>, <shape>)
``` ```

Loading…
Cancel
Save