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

SCM Repository

[diderot] View of /branches/ein16/synth/vis/r__t_0__5_8_/c__t_0__5_8_.diderot
ViewVC logotype

View of /branches/ein16/synth/vis/r__t_0__5_8_/c__t_0__5_8_.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4283 - (download) (annotate)
Tue Jul 26 20:15:10 2016 UTC (3 years ago) by cchiw
File size: 574 byte(s)
add fail examples
field#2(3)[2, 2]F0 = c4hexic⊛  image("data/inputfile_0.nrrd");
input real scale = 1;
field#2(3)[]G = det(-(F0));
int length =5;
strand f(int i) {

	output tensor []out = 0.0;
    update {

		if(i==0){
			out = G([-0.35, -0.02, 0.38]);
		}
		else if(i==1){
			out = G([-0.35, -0.02, 0.38]);
		}
		else if(i==2){
			out = G([0.26, 0.04, 0.08]);
		}
		else if(i==3){
			out = G([-0.14, 0.17, 0.35]);
		}
		else if(i==4){
			out = G([0.08, 0.08, -0.22]);
		}
		else if(i==5){
			out = G([0.06, -0.11, 0.4]);
		}

        stabilize;
    }
}
initially [ f(i) | i in 0..length];

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