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 473, Thu Nov 4 15:34:51 2010 UTC revision 474, Thu Nov 4 18:33:56 2010 UTC
# Line 2  Line 2 
2  //  //
3  // This file tests various typechecking rules  // This file tests various typechecking rules
4    
5  tensor[3,2] 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]];
6  tensor[3] y = x[:,1];  tensor[3] y = x[1,:];
7  tensor[2] z = x[0,:];  tensor[2] z = x[:,0];
8    tensor[3,2] m = [x[:,0], x[:,1], x[:,2]]
9    
10  image(3)[2] img1 = load("img1.nrrd");  image(3)[2] img1 = load("img1.nrrd");
11  field#2(3)[2] F = img1 (*) bspln3;  field#2(3)[2] F = img1 (*) bspln3;
12  field#1(3)[2,3] dF = D F;  field#1(3)[2,3] dF = D F;
13    
14    tensor w[3] = (dF @ y)[0,:];
15    

Legend:
Removed from v.473  
changed lines
  Added in v.474

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