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

SCM Repository

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

View of /branches/vis15/src/tests/new-tests/input-test.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4497 - (download) (annotate)
Sat Sep 3 14:12:36 2016 UTC (2 years, 6 months ago) by jhr
File size: 363 byte(s)
  working on merge: updating tests with new version 2 syntax
#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