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

SCM Repository

[diderot] Annotation of /branches/vis15/src/tests/new-tests/slice-test.diderot
ViewVC logotype

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3715 - (view) (download)

1 : jhr 3715 // test tensor indexing and slicing
2 :     //
3 :    
4 :     tensor[3] x = [1, 2, 3];
5 :     tensor[3,3] M = [ [1, 2, 3], [4, 5, 6], [7, 8, 9] ];
6 :    
7 :     strand S () {
8 :     output real w = x[0] + x[1] * (M[1,:] • M[:, 2]);
9 :    
10 :     update {
11 :     stabilize;
12 :     }
13 :     }
14 :    
15 :     collection { S() | i in 1..2 }

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