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 3380 - (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 : glk 2336 // BUG: printing tensor[2,2] doesn't work
12 : glk 2337 print(m22, "\n");
13 :    
14 :     // BUG: printing tensor[2,3] doesn't work
15 :     print(m23, "\n");
16 :    
17 :     // BUG: printing tensor[3,2] doesn't work
18 :     print(m32, "\n");
19 :    
20 :     // BUG: printing tensor[3,3] doesn't work
21 :     print(m33, "\n");
22 :    
23 : glk 2336 stabilize;
24 :     }
25 :     }
26 :     initially {foo(i) | i in 1..1};

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