Skip to content

Commit 71942b9

Browse files
committed
changed readme back to original
1 parent 02ac939 commit 71942b9

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

README.md

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ the documentation, which contains the unreleased features.
2222

2323
## Example
2424

25-
### VectorOfArray
26-
2725
```julia
2826
using RecursiveArrayTools
2927
a = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
@@ -32,30 +30,11 @@ vA = VectorOfArray(a)
3230
vB = VectorOfArray(b)
3331

3432
vA .* vB # Now all standard array stuff works!
35-
```
3633

37-
### ArrayPartition
38-
39-
```julia
4034
a = (rand(5), rand(5))
4135
b = (rand(5), rand(5))
4236
pA = ArrayPartition(a)
4337
pB = ArrayPartition(b)
4438

4539
pA .* pB # Now all standard array stuff works!
46-
47-
48-
x0 = rand(3,3)
49-
v0 = rand(3,3)
50-
a0 = rand(3,3)
51-
u0 = ArrayPartition(x0, v0, a0)
52-
u0.x[1] == x0 # true
53-
54-
u0 .+= 1
55-
u0.x[2] == v0 # still true
56-
57-
# do some calculations creating a new partitioned array
58-
unew = u0 * 10
59-
# easily access the individual components without having to rely on complicated indexing
60-
xnew, vnew, anew = unew.x
6140
```

0 commit comments

Comments
 (0)