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

SCM Repository

[diderot] View of /branches/charisee/test/E-Hessian.diderot
ViewVC logotype

View of /branches/charisee/test/E-Hessian.diderot

Parent Directory Parent Directory | Revision Log Revision Log

Revision 2515 - (download) (annotate)
Mon Dec 2 03:42:14 2013 UTC (5 years, 8 months ago) by cchiw
File size: 741 byte(s)

image(3)[] img = load("../data/zimg112.nrrd");
//Scalar Fields
field#2(3)[] F = img ⊛ bspln3;
field#1(2)[] F2 = ctmr ⊛ load("../data/ddro-80.nrrd");
//Vector Fields
field#1(2)[2] V = load("../data/turb2d.nrrd") ⊛ ctmr;
field#4(2)[2] V2 = load("../data/turb2d.nrrd") ⊛ bspln5;

field#1(3)[3] grad1 =∇F;

//hessian of scalar field 
//field#0(3)[3,3] hess1 =∇⊗grad1;

field#0(2)[2,2] jacobian =∇⊗V;

//field#0(3)[3,3] testhess1=hess2;

field#0(2)[2,2] testhess2=jacobian*7;

//Hessian of a vector Field
field#3(2)[2,2] T=∇⊗V2;
field#2(2)[2,2,2] hessian=∇⊗T;

strand fieldTest (int row)
real row1=row*9;
    vec2 pos=[row,row1];

initially [ fieldTest( r) | r in 0..1];

ViewVC Help
Powered by ViewVC 1.0.0