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

SCM Repository

[diderot] View of /tests/synthetic/grad_d1/grad_d1.diderot
ViewVC logotype

View of /tests/synthetic/grad_d1/grad_d1.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4640 - (download) (annotate)
Tue Sep 27 20:54:47 2016 UTC (2 years, 8 months ago) by glk
File size: 645 byte(s)
initial result of svn export --username anonsvn --password=anonsvn https://svn.smlnj-gforge.cs.uchicago.edu/svn/diderot/branches/vis15/src/tests/
field#3(1)[] f = image ("../data/sd1.nrrd") ⊛ bspln5;

//sd1.nrrd = 2+9x+7*x^2+5*x^3
//f(_)=> 2+9x+7*x^2+5*x^3  f(-0.4)=> -0.8  f(.22)=> 0.22 4.3725543

//field#1(1)[] h = ∇f;
//  f(_)=> 9+(7*2*x)+(5*3*x*x), f(-0.4)=> 5.8,  f(-0.4)=> 12.806

//field#0(1)[] h = ∇∇f;
// f(_)=> 14+30*x,  f(-0.4)=> 2.0, f(.22)=>20.6

field#0(1)[] h = ∇∇∇f;
// f(_)=>30

//field#0(1)[] h = ∇⊗∇f; //mismatch

int imgSize = 40;
strand fieldTest (int xi) {
real pos = -0.4+real(xi)*0.02;
    output tensor [2] out = [0,0];
     update
        {


out = [pos, h(pos)];

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


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