src/lib.rs

changeset 89
8d1c959432c8
parent 88
51dbb2cc25d9
child 90
b471a13e3136
equal deleted inserted replaced
88:51dbb2cc25d9 89:8d1c959432c8
19 19
20 //#[cfg(feature = "pyo3")] 20 //#[cfg(feature = "pyo3")]
21 //use pyo3::pyclass; 21 //use pyo3::pyclass;
22 22
23 pub mod dataterm; 23 pub mod dataterm;
24 pub mod domain;
24 pub mod fb; 25 pub mod fb;
25 pub mod forward_model; 26 pub mod forward_model;
26 pub mod forward_pdps; 27 pub mod forward_pdps;
27 pub mod fourier; 28 pub mod fourier;
28 pub mod frank_wolfe; 29 pub mod frank_wolfe;
240 #[arg(long)] 241 #[arg(long)]
241 /// Maximum scaling iteration for scaling heuristic. 242 /// Maximum scaling iteration for scaling heuristic.
242 pub max_scaling_iter: Option<usize>, 243 pub max_scaling_iter: Option<usize>,
243 244
244 #[arg(long)] 245 #[arg(long)]
245 /// Extra finite dimensional steps to take 246 /// Extra finite dimensional steps to take after merge and random insertion.
247 /// This all methods support this.
246 pub extra_weight_optimisation_steps: Option<usize>, 248 pub extra_weight_optimisation_steps: Option<usize>,
249
250 #[arg(long)]
251 /// Whether to perform random insertions after merge. Not all methods support this.
252 pub random_insertions: Option<bool>,
247 253
248 #[arg(long, value_names = &["ε", "θ", "p"])] 254 #[arg(long, value_names = &["ε", "θ", "p"])]
249 /// Set the tolerance to ε_k = ε/(1+θk)^p 255 /// Set the tolerance to ε_k = ε/(1+θk)^p
250 pub tolerance: Option<Vec<F>>, 256 pub tolerance: Option<Vec<F>>,
251 257

mercurial