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

SCM Repository

[diderot] Diff of /branches/charisee/test/E-diffFields.diderot
ViewVC logotype

Diff of /branches/charisee/test/E-diffFields.diderot

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

revision 2607, Thu May 1 17:36:16 2014 UTC revision 2608, Fri May 2 18:04:54 2014 UTC
# Line 18  Line 18 
18    
19  field#1(2)[3] RGB = ctmr  ⊛ load("../data/txf/2d-bow.nrrd");  field#1(2)[3] RGB = ctmr  ⊛ load("../data/txf/2d-bow.nrrd");
20    
21    vec2 v2=[4,5];
22    
23    
24    /*
   
25  //Fields  //Fields
26    
27  field#1(2)[] field2=F2+9;  field#1(2)[] field2=F2+9;
# Line 31  Line 31 
31  vec2 gradA=[2,3];  vec2 gradA=[2,3];
32    
33    
34  /*  
35    
36  //Fields  //Fields
37    
# Line 47  Line 47 
47  vec2 gradA=[2,3];  vec2 gradA=[2,3];
48    
49    
50    
51  //grad  //grad
52  field#0(2)[2] grad =∇F2;  field#0(2)[2] grad =∇F2;
53  vec2 gradA=grad([6,7]);  vec2 gradA=grad([6,7]);
54  real s=9;  real s=(v2•v2);
55    /*
56  //Laplacian and Div has split problems  //Laplacian and Div has split problems
57  //laplacian 3-d  //laplacian 3-d
58    
# Line 80  Line 81 
81  field#0(2)[] curl2 =∇×V;  field#0(2)[] curl2 =∇×V;
82  real s=curl2([5,6]);  real s=curl2([5,6]);
83  vec2 gradA=[8,8];  vec2 gradA=[8,8];
 */  
84    
85    
86  //At tthis point need to change statement in strand method  //At tthis point need to change statement in strand method
87  //Jacobian  //Jacobian
88  /*  
89  field#0(2)[2,2] jacobian =∇⊗V2;  field#0(2)[2,2] jacobian =∇⊗V2;
90  tensor [2,2] M=jacobian([6,9]);  tensor [2,2] M=jacobian([6,9]);
91    */
92    
93  //Hessian of a Scalar Field 2d  //Hessian of a Scalar Field 2d
94    
95  field#0(2)[2,2] hess1 =∇⊗∇F7;  field#0(2)[2,2] hess1 =∇⊗∇F7;
96  tensor [2,2] M=hess1([6,9]);  tensor [2,2] M=hess1([6,9]);
97    
98    /*
99    
100  //Hessian of a Scalar Field 3-d  //Hessian of a Scalar Field 3-d
101    
# Line 119  Line 119 
119  strand fieldTest (int row)  strand fieldTest (int row)
120  {  {
121  //vec4 M=C*9;  //vec4 M=C*9;
122  vec2 gradB=gradA*s;//default  //vec2 gradB=gradA*s;//default
123  //tensor [2,2] D=M*9;//Jacobian. HessianScalar  2-d  tensor [2,2] D=M*9;//Jacobian. HessianScalar  2-d
124  //tensor [3,3] D=M*9;//Hessian Scalar 3-d  //tensor [3,3] D=M*9;//Hessian Scalar 3-d
125  //tensor[2,2,2] C=B;//Hessian Vector  //tensor[2,2,2] C=B;//Hessian Vector
126    

Legend:
Removed from v.2607  
changed lines
  Added in v.2608

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