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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 472 - (download) (annotate)
Thu Nov 4 13:29:26 2010 UTC (8 years, 11 months ago) by jhr
Original Path: trunk/test/ty-test.diderot
File size: 265 byte(s)
  Added type test example
// ty-test.diderot
//
// This file tests various typechecking rules

tensor[3,2] x = [[0.0, 0.1, 0.2], [1.0, 1.1, 2.1]];
tensor[3] y = x[:,1];
tensor[2] z = x[0,:];

image(3)[2] img1 = load("img1.nrrd");
field#2(3)[2] F = img1 (*) bspln3;
field#1(3)[2,3] dF = D F;

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