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_45_/t__t_20__23_45_.diderot
ViewVC logotype

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

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

		if(i==0){
			out = G([0.17, 0.23, -0.38]);
		}
		else if(i==1){
			out = G([0.17, 0.23, -0.38]);
		}
		else if(i==2){
			out = G([-0.4, 0.04, 0.27]);
		}
		else if(i==3){
			out = G([-0.37, -0.12, -0.35]);
		}
		else if(i==4){
			out = G([-0.19, 0.28, 0.37]);
		}
		else if(i==5){
			out = G([-0.4, -0.25, 0.09]);
		}

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

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