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

SCM Repository

[diderot] Diff of /branches/pure-cfg/test/fields.diderot
ViewVC logotype

Diff of /branches/pure-cfg/test/fields.diderot

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 985, Tue Apr 26 21:31:23 2011 UTC revision 1019, Sun May 1 15:21:32 2011 UTC
# Line 5  Line 5 
5    
6  image(2)[2] Vimg = load("../data/vorttest.nrrd");  image(2)[2] Vimg = load("../data/vorttest.nrrd");
7    
 // HEY (BUG) I *can* say the following:  
 //   field#1(2)[2] Vpos = Vimg ⊛ ctmr; field#1(2)[2] V = -Vpos;  
 // but trying to do that with one statement, below, causes:  
 //  uncaught exception Fail [Fail: Error in compiling fneg.diderot]  
 //   raised at driver/main.sml:31.39-31.76  
 field#1(2)[2] V = -(Vimg ⊛ ctmr);  
   
8  // HEY (BUG) I thought we had scalar multiplication of fields? this:  // HEY (BUG) I thought we had scalar multiplication of fields? this:
9  //field#1(2)[2] Vpos = Vimg ⊛ ctmr; field#1(2)[2] V = 1.0*Vpos;  field#1(2)[2] Vpos = Vimg ⊛ ctmr; field#1(2)[2] V = 1.0*Vpos;
10  // causes:  // causes:
11  //   translate (V00E2, *001E, ...)  //   translate (V00E2, *001E, ...)
12  //   uncaught exception Fail [Fail: TranslateBasis.translate: unknown basis function *001E]  //   uncaught exception Fail [Fail: TranslateBasis.translate: unknown basis function *001E]
13  //     raised at translate/translate-basis.sml:192.41-192.43  //     raised at translate/translate-basis.sml:192.41-192.43
14  //     raised at translate/translate-basis.sml:189.22-189.100  //     raised at translate/translate-basis.sml:189.22-189.100
15  //  //
16  // should also have? field#1(2)[2] V = 1.0*(Vimg ⊛ ctmr);  // This also fails:
17    // field#1(2)[2] V = 1.0*(Vimg ⊛ ctmr);
18    
19  // HEY (BUG): can't seem to even assign fields!  This also fails:  // HEY (BUG): can't seem to even assign fields!  This also fails:
20  // field#1(2)[2] Vpos = Vimg ⊛ ctmr; field#1(2)[2] V = Vpos;  // field#1(2)[2] Vpos = Vimg ⊛ ctmr; field#1(2)[2] V = Vpos;

Legend:
Removed from v.985  
changed lines
  Added in v.1019

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