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

SCM Repository

[diderot] Diff of /branches/vis15/src/tests/new-tests/clamp-test.diderot
ViewVC logotype

Diff of /branches/vis15/src/tests/new-tests/clamp-test.diderot

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

revision 4489, Sat Sep 3 00:32:03 2016 UTC revision 4490, Sat Sep 3 01:10:16 2016 UTC
# Line 1  Line 1 
1    #version 2.0
2    
3  // test clamp function  // test clamp function
4  //  //
5    
# Line 9  Line 11 
11  tensor[4] L = [-1, -1, 2, 2];  tensor[4] L = [-1, -1, 2, 2];
12  tensor[4] H = [2, 3, 3, 2.5];  tensor[4] H = [2, 3, 3, 2.5];
13    
14  {  initialize {
15    print ("M = ", M, "\n");    print ("M = ", M, "\n");
16    print ("L = ", L, "\n");    print ("L = ", L, "\n");
17    print ("H = ", H, "\n");    print ("H = ", H, "\n");
   print ("clamp(L, H, M) = ", clamp(L, H, M), "\n");  
   print ("clamp(0, 1, M) = ", clamp(0, 1, M), "\n");  
   print ("clamp(-1, 1, M) = ", clamp(-1, 1, M), "\n");  
18  }  }
19    
20  strand S () {  strand S () {
# Line 27  Line 26 
26    
27  }  }
28    
29  collection { S() | i in 1..1 }  start {
30      print ("clamp(L, H, M) = ", clamp(L, H, M), "\n");
31      print ("clamp(0, 1, M) = ", clamp(0, 1, M), "\n");
32      print ("clamp(-1, 1, M) = ", clamp(-1, 1, M), "\n");
33    }
34    
35    collection { S() | i in 1..1 }

Legend:
Removed from v.4489  
changed lines
  Added in v.4490

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