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

SCM Repository

[diderot] Diff of /branches/vis12/test/ty-test.diderot
ViewVC logotype

Diff of /branches/vis12/test/ty-test.diderot

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1369, Wed Jun 22 20:58:57 2011 UTC revision 1370, Wed Jun 22 21:11:20 2011 UTC
# Line 1  Line 1 
1  // ty-test.diderot  // ty-test.diderot
2  //  //
3  // This file tests various typechecking rules  // This file tests various typechecking rules, but it is an incomplete program
4    // and will not pass the compiler
5    
6  tensor[2,3] x = [[0.0, 0.1, 0.2], [1.0, 1.1, 2.1]];  tensor[2,3] x = [[0.0, 0.1, 0.2], [1.0, 1.1, 2.1]];
7  tensor[3] y = x[1,:];  tensor[3] y = x[1,:];
# Line 9  Line 10 
10    
11  image(3)[2] img1 = load("img1.nrrd");  image(3)[2] img1 = load("img1.nrrd");
12  field#2(3)[2] F = img1 (*) bspln3;  field#2(3)[2] F = img1 (*) bspln3;
13  field#1(3)[2,3] dF = D F;  field#1(3)[2,3] dF = ∇ F;
14    
15  tensor[3] w = (dF @ y)[0,:];  tensor[3] w = (dF @ y)[0,:];
16    

Legend:
Removed from v.1369  
changed lines
  Added in v.1370

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