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 1696 - (download) (annotate)
Wed Feb 29 12:49:39 2012 UTC (7 years, 8 months ago) by jhr
File size: 425 byte(s)
  Working on 3rd-order tensor support
/* 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