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

SCM Repository

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

View of /branches/vis12/bugs/resolved/bug008.diderot

Parent Directory Parent Directory | Revision Log Revision Log

Revision 2169 - (download) (annotate)
Sat Feb 23 13:24:04 2013 UTC (9 years, 4 months ago) by glk
Original Path: branches/vis12/bugs/bug008.diderot
File size: 674 byte(s)
example of a recent source of confusion
BUG: see if you can find the error in this Diderot program, based on:

uncaught exception Match [nonexhaustive match failure]
  raised at common/phase-timer.sml:76.50-76.52
  raised at common/phase-timer.sml:76.50-76.52
  raised at typechecker/typechecker.sml:950.39
  raised at typechecker/util.sml:238.20

int imgSize = 400;

strand LIC (real xx, real yy) {
    vec2 pos = [xx,yy];
    output real out = 0.0;

    update {
      out = |pos|;


initially [ LIC(lerp(0.0, 79.0, -0.5, real(xi), real(imgSize)-0.5,
                lerp(0.0, 79.0, -0.5, real(yi), real(imgSize)-0.5)))
            | yi in 0..(imgSize-1), xi in 0..(imgSize-1) ];

ViewVC Help
Powered by ViewVC 1.0.0