MCPcopy Create free account
hub / github.com/Axect/Peroxide / set_init_param

Method set_init_param

src/numerical/optimize.rs:196–203  ·  view source on GitHub ↗

Set initial parameter

(&mut self, p: Vec<f64>)

Source from the content-addressed store, hash-verified

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 {

Callers 6

mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 1

to_ad_vecMethod · 0.80

Tested by 4

mainFunction · 0.64