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

SCM Repository

[diderot] View of /branches/charisee/ertest/vispaper/tensor-field-ops/inner.diderot
ViewVC logotype

View of /branches/charisee/ertest/vispaper/tensor-field-ops/inner.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2925 - (download) (annotate)
Tue Mar 3 22:00:11 2015 UTC (4 years, 7 months ago) by cchiw
File size: 585 byte(s)
example of inner prod
field#2(3)[3] M = load("../../../data/const-curl3d.nrrd") ⊛ bspln3;
tensor [3] t=[1,0,0];
field#2(3)[] F = M • t;

//field#2(3)[] F = M•M;

int stepsMax = 10;
real epsilon = 0.000001;
int grid=5;

strand RootFind(real xi,real xj, real xk) {
   output vec3 x = [xi,xj,xk];
   int steps = 0;
   real l=F(x);
   update {
      stabilize;
   }
}

initially { RootFind(lerp(-2, 2, -0.5, ui, grid-0.5),
                     lerp(-2, 2, -0.5, vi, grid-0.5),
                     lerp(-2, 2, -0.5, wi, grid-0.5))
            | wi in 0..(grid-1), vi in 0..(grid-1), ui in 0..(grid-1) };

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