103 write_face_csv(format!("{PREFIX}/{face}"), face, 32, |x| f.apply(x) + g.apply(x))?; |
103 write_face_csv(format!("{PREFIX}/{face}"), face, 32, |x| f.apply(x) + g.apply(x))?; |
104 } |
104 } |
105 write_face_imgs(128, |x| f.apply(x) + g.apply(x))?; |
105 write_face_imgs(128, |x| f.apply(x) + g.apply(x))?; |
106 |
106 |
107 run_and_save("x1", &f, &g, OnCube::new(F3, Loc([0.1, 0.7])), τ)?; |
107 run_and_save("x1", &f, &g, OnCube::new(F3, Loc([0.1, 0.7])), τ)?; |
108 run_and_save("x2", &f, &g, OnCube::new(F2, Loc([0.1, 0.7])), τ)?; |
108 run_and_save("x2", &f, &g, OnCube::new(F2, Loc([0.3, 0.1])), τ)?; |
109 run_and_save("x3", &f, &g, OnCube::new(F6, Loc([0.6, 0.2])), τ) |
109 run_and_save("x3", &f, &g, OnCube::new(F6, Loc([0.6, 0.2])), τ) |
110 } |
110 } |
111 |
111 |
112 /// Runs [forward_backward] and saves the results. |
112 /// Runs [forward_backward] and saves the results. |
113 pub fn run_and_save<F, G>( |
113 pub fn run_and_save<F, G>( |