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

SCM Repository

[diderot] View of /branches/vis15/src/tests/sqprnt/sqp4.diderot
ViewVC logotype

View of /branches/vis15/src/tests/sqprnt/sqp4.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4525 - (download) (annotate)
Tue Sep 6 21:15:11 2016 UTC (3 years ago) by jhr
File size: 362 byte(s)
  adding vector test
input vec2 vmm = [0,0];
input vec4 voff = [0,0,0,0];
vec4 {} seeds = load("vec4.nrrd");

strand sqp (int ii, vec4 vv) {
   int nn = length(seeds);
   output real err = 0;

   update {
      real ww = lerp(vmm[0], vmm[1], 0, ii, nn-1);
      err = |voff + [ww,ww,ww,ww] - vv|;
      stabilize;
   }
}

initially [ sqp(ii, seeds{ii}) | ii in 0..length(seeds)-1 ];

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