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

SCM Repository

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

View of /branches/ein16/synth/vis/t__t_20__23_25_/t__t_20__23_25_.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: 684 byte(s)
add fail examples
field#2(3)[2]F0 = c4hexic⊛  image("data/inputfile_0.nrrd");
tensor [2]F1 = [2, 3];
field#2(3)[]F2 = c4hexic⊛  image("data/inputfile_2.nrrd");
input real scale = 1;
field#2(3)[2, 2]G = (F0⊗F1)/F2;
int length =5;
strand f(int i) {

	output tensor [2,2] out = [[0.0, 0.0],[0.0, 0.0]];
    update {

		if(i==0){
			out = G([0.19, -0.17, 0.3]);
		}
		else if(i==1){
			out = G([0.19, -0.17, 0.3]);
		}
		else if(i==2){
			out = G([-0.4, 0.26, -0.08]);
		}
		else if(i==3){
			out = G([0.12, -0.03, -0.31]);
		}
		else if(i==4){
			out = G([-0.35, -0.28, 0.19]);
		}
		else if(i==5){
			out = G([0.13, 0.13, -0.2]);
		}

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

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