1 | test_shape = ->
|
2 | run_test [
|
3 |
|
4 | # see transpose function source to see why
|
5 | # transposition has no effect on vectors
|
6 | # of dimension (rank) 1
|
7 |
|
8 | "shape([A,B,C])",
|
9 | "[3]",
|
10 |
|
11 | "shape(transpose([A,B,C]))",
|
12 | "[3]",
|
13 |
|
14 | "shape([[A],[B],[C]])",
|
15 | "[3,1]",
|
16 |
|
17 | "shape(transpose([[A],[B],[C]]))",
|
18 | "[1,3]",
|
19 |
|
20 | "shape([[A,B],[C,D],[E,F]])",
|
21 | "[3,2]",
|
22 |
|
23 | "shape(transpose([[A,B],[C,D],[E,F]]))",
|
24 | "[2,3]",
|
25 |
|
26 | ]
|
27 |
|