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

SCM Repository

[diderot] Annotation of /branches/vis12/bugs/open/bug007.diderot
ViewVC logotype

Annotation of /branches/vis12/bugs/open/bug007.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2821 - (view) (download)

1 : jhr 2166 // bug007.diderot
2 :     //
3 :     // This program tests the slicing syntax, but fails with
4 :     //
5 :     // ../bin/diderotc --log bug007.diderot
6 : jhr 2821 // uncaught exception Fail [Fail: unknown or incorrect operator Slice<tensor[2,3],:_>]
7 : jhr 2193 // raised at common/phase-timer.sml:76.50-76.52
8 :     // raised at common/phase-timer.sml:76.50-76.52
9 : jhr 2821 // raised at c-util/tree-to-c.sml:281.26-283.19
10 : jhr 2166
11 :     tensor[2,3] x = [[0.0, 0.1, 0.2], [1.0, 1.1, 2.1]];
12 :     tensor[3] y = x[1,:];
13 :     tensor[2] z = x[:,0];
14 :     tensor[3,2] m = [x[:,0], x[:,1], x[:,2]];
15 :     real s = m[1, 0];
16 :     real a = m:m + x:x;
17 :    
18 :     strand S ()
19 :     {
20 : jhr 2821 output real dummy = s + a;
21 : jhr 2166 update { stabilize; }
22 :     }
23 :    
24 :     initially { S() | i in 1..2 };

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