12:3b05a8b45b95 | 13:f67949050a32 |
---|---|
1 /*! | |
2 Optimisation on non-Riemannian manifolds. | |
3 */ | |
1 | 4 |
2 // We use unicode. We would like to use much more of it than Rust allows. | 5 // We use unicode. We would like to use much more of it than Rust allows. |
3 // Live with it. Embrace it. | 6 // Live with it. Embrace it. |
4 #![allow(uncommon_codepoints)] | 7 #![allow(uncommon_codepoints)] |
5 #![allow(mixed_script_confusables)] | 8 #![allow(mixed_script_confusables)] |
23 mod fb; | 26 mod fb; |
24 mod cube; | 27 mod cube; |
25 mod dist; | 28 mod dist; |
26 mod zero; | 29 mod zero; |
27 | 30 |
31 /// Program entry point | |
28 fn main() { | 32 fn main() { |
29 simple_cube_test().unwrap() | 33 simple_cube_test().unwrap() |
30 } | 34 } |
31 | 35 |
32 /// Helper structure for saving the log into a CSV file | 36 /// Helper structure for saving the log into a CSV file |
38 x : f64, | 42 x : f64, |
39 y : f64, | 43 y : f64, |
40 z : f64 | 44 z : f64 |
41 } | 45 } |
42 | 46 |
47 /// Location for saving results | |
43 static PREFIX : &str = "res"; | 48 static PREFIX : &str = "res"; |
44 | 49 |
45 /// A simple test on the cube | 50 /// A simple test on the cube |
46 fn simple_cube_test() -> DynError { | 51 fn simple_cube_test() -> DynError { |
47 use alg_tools::loc::Loc; | 52 use alg_tools::loc::Loc; |