Struct ceres_solver::parameter_block::ParameterBlock
source · 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.