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/slice-test.diderot
ViewVC logotype

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3933 - (download) (annotate)
Sun Jun 5 19:29:10 2016 UTC (3 years, 3 months ago) by jhr
File size: 269 byte(s)
  working on merge: runtime
// test tensor indexing and slicing
//

input tensor[3] x = [1, 2, 3];
tensor[3,3] M = [ [1, 2, 3], [4, 5, 6], [7, 8, 9] ];

strand S () {
  output real w = x[0] + x[1] * (M[1,:] • M[:, 2]);

  update {
    stabilize;
  }
}

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

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