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

SCM Repository

[diderot] Diff of /trunk/test/teigen.diderot
ViewVC logotype

Diff of /trunk/test/teigen.diderot

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

revision 1987, Mon Jul 30 18:32:23 2012 UTC revision 1988, Tue Jul 31 21:50:46 2012 UTC
# Line 11  Line 11 
11  int gridSize = 1;  int gridSize = 1;
12    
13  strand eigenStrand (int id) {  strand eigenStrand (int id) {
14    
15      output vec3 eVector = [0.0,0.0,0.0];      output vec3 eVector = [0.0,0.0,0.0];
16      tensor[3,3] simpleMatrix= [ [3.0,2.0,4.0],    //  output real eigen = 0.0;
                                 [5.0,6.0,7.0],  
                                 [8.0,9.0,1.0]];  
17    
18      update {      update {
19            tensor[3,3] simpleMatrix= [[1.0,7.0,3.0],
20                                       [7.0,4.0,-5.0],
21                                       [3.0,-5.0,6.0]];
22    
23          real{3} eval = evals(simpleMatrix);          real{3} eval = evals(simpleMatrix);
24          vec3{3} eVectors = evecs(simpleMatrix);          vec3{3} eVectors = evecs(simpleMatrix);
25          eVector = eVectors{3};          eVector = -eVectors{1};
26          stabilize;          stabilize;
27      }      }
28  }  }

Legend:
Removed from v.1987  
changed lines
  Added in v.1988

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