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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3291 - (download) (annotate)
Wed Oct 14 21:25:00 2015 UTC (4 years, 1 month ago) by jhr
File size: 478 byte(s)
code is copyright University of Chicago
/* tensor-test.diderot
 *
 * This code is part of the Diderot Project (http://diderot-language.cs.uchicago.edu)
 *
 * COPYRIGHT (c) 2015 The University of Chicago
 * All rights reserved.
 */

strand RayCast ()
{
    output real t = 0.0;
    tensor[2,2,2] x = [
	[[1.0, 2.0], [3.0, 4.0]],
	[[5.0, 6.0], [7.0, 8.0]]];

    update
    {
	t = t + x[0,1,0];
	if (t > 20.0)
	    stabilize;
    }

    /* render: output maxval */
}

initially [ RayCast() | r in 0..199, c in 0..199 ];

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