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 with_lower_bounds(
&mut self,
lower_bounds: impl Into<Vec<Option<f64>>>
) -> &mut Self
pub fn with_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 with_upper_bounds(
&mut self,
upper_bounds: impl Into<Vec<Option<f64>>>
) -> &mut Self
pub fn with_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 with_all_lower_bounds(
&mut self,
lower_bounds: impl Into<Vec<f64>>
) -> &mut Self
pub fn with_all_lower_bounds(
&mut self,
lower_bounds: impl Into<Vec<f64>>
) -> &mut Self
Add lower bounds to the parameter vector.
sourcepub fn with_all_upper_bounds(
&mut self,
upper_bounds: impl Into<Vec<f64>>
) -> &mut Self
pub fn with_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.