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

SCM Repository

[diderot] View of /tests/new-tests/input-test.diderot
ViewVC logotype

View of /tests/new-tests/input-test.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4640 - (download) (annotate)
Tue Sep 27 20:54:47 2016 UTC (2 years, 9 months ago) by glk
File size: 363 byte(s)
initial result of svn export --username anonsvn --password=anonsvn https://svn.smlnj-gforge.cs.uchicago.edu/svn/diderot/branches/vis15/src/tests/
#version 2.0

// test tensor indexing and slicing
//

input real s = 1.2;
input bool b;
input tensor[3] x = [1, 2, 3];
input int[] iseq = load_sequence("ints.nrrd");

initialize {
  if (b) { print ("x = ", x, "\n"); }
}

strand S (int k) {
  output real w = s * real(iseq[k]);

  update {
    stabilize;
  }
}

create_collection { S(i+j) | i in 1..2, j in 1..2 }

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