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

SCM Repository

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

View of /branches/vis12/bugs/bug007.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2193 - (download) (annotate)
Sun Feb 24 11:50:36 2013 UTC (7 years, 5 months ago) by jhr
File size: 720 byte(s)
 updating comments in bug examples
// bug007.diderot
//
// This program tests the slicing syntax, but fails with
//
//   ../bin/diderotc --log bug007.diderot
//   error converting Slice<tensor[2,3],:_>
//   uncaught exception Fail [Fail: FIXME: Slice]
//     raised at common/phase-timer.sml:76.50-76.52
//     raised at common/phase-timer.sml:76.50-76.52
//     raised at high-to-mid/high-to-mid.sml:297.85-297.87
//     raised at high-to-mid/high-to-mid.sml:251.41-251.60

tensor[2,3] x = [[0.0, 0.1, 0.2], [1.0, 1.1, 2.1]];
tensor[3] y = x[1,:];
tensor[2] z = x[:,0];
tensor[3,2] m = [x[:,0], x[:,1], x[:,2]];
real s = m[1, 0];
real a = m:m + x:x;

strand S ()
{
    output real dummy = 0.0;
    update { stabilize; }
}

initially { S() | i in 1..2 };

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