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

SCM Repository

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

Annotation of /branches/vis12-cl/test/tensor-test.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3349 - (view) (download)

1 : jhr 1696 /* tensor-test.diderot
2 :     *
3 : jhr 3349 * This code is part of the Diderot Project (http://diderot-language.cs.uchicago.edu)
4 :     *
5 :     * COPYRIGHT (c) 2015 The University of Chicago
6 : jhr 1696 * All rights reserved.
7 :     */
8 :    
9 :     strand RayCast ()
10 :     {
11 :     output real t = 0.0;
12 :     tensor[2,2,2] x = [
13 :     [[1.0, 2.0], [3.0, 4.0]],
14 :     [[5.0, 6.0], [7.0, 8.0]]];
15 :    
16 :     update
17 :     {
18 :     t = t + x[0,1,0];
19 :     if (t > 20.0)
20 :     stabilize;
21 :     }
22 :    
23 :     /* render: output maxval */
24 :     }
25 :    
26 :     initially [ RayCast() | r in 0..199, c in 0..199 ];

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