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

SCM Repository

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

Annotation of /branches/tash/test/tensor-test.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3217 - (view) (download)

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

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