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

SCM Repository

[diderot] View of /branches/charisee/ertest/tests/H-ddro/H-ddro.diderot
ViewVC logotype

View of /branches/charisee/ertest/tests/H-ddro/H-ddro.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2870 - (download) (annotate)
Wed Feb 25 21:47:43 2015 UTC (4 years, 5 months ago) by cchiw
File size: 444 byte(s)
added sqrt,pow, and examples
   field#2(2)[] f= load ("../../../data/ddro.nrrd") ⊛ bspln3;
int imgSize = 300;

strand fieldTest (int xi, int yi) {
    vec2 pos = [lerp(0.0, 1.0, -0.5, real(xi), real(imgSize)-0.5),
                lerp(0.0, 1.0, -0.5, real(yi), real(imgSize)-0.5)];


    
     output tensor[2,2] h = ∇⊗∇f(pos);


     
     update
        {

        stabilize;
    }
}
initially [ fieldTest(xi, yi) |  yi in 0..(imgSize-1), xi in 0..(imgSize-1)];


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