pub struct ParameterBlock { /* private fields */ }Expand description
Parameter vector representation to use with NllsProblem.
Implementations§
Source§impl ParameterBlock
impl ParameterBlock
pub fn new(values: impl Into<Vec<f64>>) -> Self
Sourcepub fn set_lower_bounds(
&mut self,
lower_bounds: impl Into<Vec<Option<f64>>>,
) -> &mut Self
pub fn set_lower_bounds( &mut self, lower_bounds: impl Into<Vec<Option<f64>>>, ) -> &mut Self
Add lower bounds to the parameter vector. None means no lower bound.
Sourcepub fn set_upper_bounds(
&mut self,
upper_bounds: impl Into<Vec<Option<f64>>>,
) -> &mut Self
pub fn set_upper_bounds( &mut self, upper_bounds: impl Into<Vec<Option<f64>>>, ) -> &mut Self
Add upper bounds to the parameter vector. None means no upper bound.
Sourcepub fn set_all_lower_bounds(
&mut self,
lower_bounds: impl Into<Vec<f64>>,
) -> &mut Self
pub fn set_all_lower_bounds( &mut self, lower_bounds: impl Into<Vec<f64>>, ) -> &mut Self
Add lower bounds to the parameter vector.
Sourcepub fn set_all_upper_bounds(
&mut self,
upper_bounds: impl Into<Vec<f64>>,
) -> &mut Self
pub fn set_all_upper_bounds( &mut self, upper_bounds: impl Into<Vec<f64>>, ) -> &mut Self
Add upper bounds to the parameter vector.
Sourcepub fn lower_bounds(&self) -> Option<&[Option<f64>]>
pub fn lower_bounds(&self) -> Option<&[Option<f64>]>
Lower bounds of the parameters, if any. None means no lower bound.
Trait Implementations§
Source§impl From<ParameterBlock> for ParameterBlockOrIndex
impl From<ParameterBlock> for ParameterBlockOrIndex
Source§fn from(block: ParameterBlock) -> Self
fn from(block: ParameterBlock) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParameterBlock
impl RefUnwindSafe for ParameterBlock
impl !Send for ParameterBlock
impl !Sync for ParameterBlock
impl Unpin for ParameterBlock
impl UnwindSafe for ParameterBlock
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more