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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3210 - (download) (annotate)
Mon Jul 13 14:39:06 2015 UTC (4 years, 3 months ago) by cchiw
File size: 425 byte(s)
creating a copy of branch of vis12
/* tensor-test.diderot
 *
 * COPYRIGHT (c) 2012 The Diderot Project (http://diderot-language.cs.uchicago.edu)
 * 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