Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Annotation of /branches/vis12/bugs/open/bug029.diderot
ViewVC logotype

Annotation of /branches/vis12/bugs/open/bug029.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2337 - (view) (download)

1 : glk 2336
2 :     strand foo (real a) {
3 :     output real bar = 0;
4 :     update {
5 :     vec2 vv = [a,2*a];
6 : glk 2337 tensor[2,2] m22 = [vv,2*vv];
7 :     tensor[2,3] m23 = [[0,1,2],[3,4,5]];
8 :     tensor[3,2] m32 = [[0,1],[2,3],[4,5]];
9 :     tensor[3,3] m33 = [[0,1,2],[3,4,5],[6,7,8]];
10 :    
11 :     // BUG: printing a tensor valued expression should give you
12 :     // something that can be copy-pasted back into code as a
13 :     // tensor-value (replace "<>" with "[]")
14 : glk 2336 print(vv, "\n");
15 : glk 2337
16 : glk 2336 // BUG: printing tensor[2,2] doesn't work
17 : glk 2337 print(m22, "\n");
18 :    
19 :     // BUG: printing tensor[2,3] doesn't work
20 :     print(m23, "\n");
21 :    
22 :     // BUG: printing tensor[3,2] doesn't work
23 :     print(m32, "\n");
24 :    
25 :     // BUG: printing tensor[3,3] doesn't work
26 :     print(m33, "\n");
27 :    
28 : glk 2336 stabilize;
29 :     }
30 :     }
31 :     initially {foo(i) | i in 1..1};

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0