Skip to content

Commit 7d37cfc

Browse files
authored
Merge pull request #27 from termoshtt/example
Add example usage
2 parents ba69cae + 8ebdfe7 commit 7d37cfc

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

example/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Example of rust-numpy
2+
----------------------
3+
4+
- Prerequirement
5+
6+
```
7+
sudo pip3 install -r requirements.txt
8+
```
9+
10+
- Build
11+
12+
```
13+
python3 setup.py develop --user
14+
```
15+
16+
- Run
17+
18+
```python
19+
import numpy as np
20+
import rust_ext
21+
22+
a = np.array([0.0, 1.0])
23+
b = np.array([2.0, 3.0])
24+
rust_ext(2.0, a, b)
25+
```

0 commit comments

Comments
 (0)