Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c9dd6b5

Browse files
author
Rue Yokaze
authored
add install & usage sections
1 parent 487167a commit c9dd6b5

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

‎README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,23 @@
11
# python-multi-array
22
A python wrapper for boost::multi_array
3+
4+
# Install
5+
6+
```
7+
$ make
8+
```
9+
10+
You may change the include directory by editing setup.py.
11+
12+
# Usage
13+
14+
```python
15+
>>> import multi_array, scipy
16+
>>> x = multi_array.make((2, 4), multi_array.float32)
17+
>>> x.set(scipy.rand(2, 4))
18+
>>> x.get()
19+
array([[ 0.9504686 , 0.37968314, 0.93876582, 0.17501496],
20+
[ 0.87398338, 0.83764452, 0.69423091, 0.29122856]], dtype=float32)
21+
>>> x[1, 2]
22+
0.6942309141159058
23+
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /