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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2337 - (download) (annotate)
Thu Apr 4 18:27:52 2013 UTC (6 years, 6 months ago) by glk
File size: 768 byte(s)
more
strand foo (real a) {
  output real bar = 0;
  update {
    vec2 vv = [a,2*a];
    tensor[2,2] m22 = [vv,2*vv];
    tensor[2,3] m23 = [[0,1,2],[3,4,5]];
    tensor[3,2] m32 = [[0,1],[2,3],[4,5]];
    tensor[3,3] m33 = [[0,1,2],[3,4,5],[6,7,8]];

    // BUG: printing a tensor valued expression should give you
    // something that can be copy-pasted back into code as a
    // tensor-value (replace "<>" with "[]")
    print(vv, "\n");

    // BUG: printing tensor[2,2] doesn't work
    print(m22, "\n");

    // BUG: printing tensor[2,3] doesn't work
    print(m23, "\n");

    // BUG: printing tensor[3,2] doesn't work
    print(m32, "\n");

    // BUG: printing tensor[3,3] doesn't work
    print(m33, "\n");

    stabilize;
  }
}
initially {foo(i) | i in 1..1};

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