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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1685 - (view) (download)

1 : jhr 472 // ty-test.diderot
2 :     //
3 : jhr 1370 // This file tests various typechecking rules, but it is an incomplete program
4 :     // and will not pass the compiler
5 : jhr 472
6 : jhr 474 tensor[2,3] x = [[0.0, 0.1, 0.2], [1.0, 1.1, 2.1]];
7 :     tensor[3] y = x[1,:];
8 :     tensor[2] z = x[:,0];
9 : jhr 475 tensor[3,2] m = [x[:,0], x[:,1], x[:,2]];
10 : jhr 472
11 :     image(3)[2] img1 = load("img1.nrrd");
12 :     field#2(3)[2] F = img1 (*) bspln3;
13 : jhr 1370 field#1(3)[2,3] dF = ∇ F;
14 : jhr 474
15 : jhr 475 tensor[3] w = (dF @ y)[0,:];
16 : jhr 474

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