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_1_/t__t_20__23_1_.diderot
ViewVC logotype

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

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

		if(i==0){
			out = G([-0.18, 0.39]);
		}
		else if(i==1){
			out = G([-0.18, 0.39]);
		}
		else if(i==2){
			out = G([0.14, -0.0]);
		}
		else if(i==3){
			out = G([-0.31, -0.21]);
		}
		else if(i==4){
			out = G([-0.24, -0.38]);
		}
		else if(i==5){
			out = G([-0.15, 0.01]);
		}

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

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