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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3349 - (download) (annotate)
Tue Oct 27 15:16:36 2015 UTC (3 years, 8 months ago) by jhr
File size: 478 byte(s)
making copyrights consistent for all code in the repository
/* 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