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

SCM Repository

[diderot] View of /tests/new-tests/local-sum.diderot
ViewVC logotype

View of /tests/new-tests/local-sum.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5568 - (download) (annotate)
Fri May 25 21:01:09 2018 UTC (13 months, 3 weeks ago) by jhr
File size: 392 byte(s)
testing local reductions
#version 2

vec2[] points = { [1, 2], [3, 4], [5, 6] };
//input image(2)[3] Img = load_image("data/mandrill.nrrd");
//field#0(2)[3] F = tent ⊛ Img;

//field(2)[] G(x) = sum { F(x + y)[0] | y in points };
field(2)[] G(v) = max { v • x | x in points };

strand Sample ()
{
    output real s = nan;
    update {
	s = G([0.5, 0.5]);
	stabilize;
    }
}

create_array { Sample() | i in 1..1 }

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