Set initial parameter
(&mut self, p: Vec<f64>)
| 194 | |
| 195 | /// Set initial parameter |
| 196 | pub fn set_init_param(&mut self, p: Vec<f64>) -> &mut Self { |
| 197 | if let Some(x) = self.option.get_mut(&InitParam) { |
| 198 | *x = true |
| 199 | } |
| 200 | |
| 201 | self.param = p.to_ad_vec(); |
| 202 | self |
| 203 | } |
| 204 | |
| 205 | /// Set maximum iteration |
| 206 | pub fn set_max_iter(&mut self, n: usize) -> &mut Self { |