pub struct NllsProblem<'cost> { /* private fields */ }Expand description
Non-Linear Least Squares problem.
See module-level documentation building the instance of this type.
Implementations§
Source§impl<'cost> NllsProblem<'cost>
impl<'cost> NllsProblem<'cost>
Sourcepub fn residual_block_builder(self) -> ResidualBlockBuilder<'cost>
pub fn residual_block_builder(self) -> ResidualBlockBuilder<'cost>
Capture this problem into a builder for a new residual block.
Sourcepub fn set_parameter_block_constant(
&mut self,
block_index: usize,
) -> Result<(), ParameterBlockStorageError>
pub fn set_parameter_block_constant( &mut self, block_index: usize, ) -> Result<(), ParameterBlockStorageError>
Set parameter block to be constant during the optimization. Parameter block must be already added to the problem, otherwise ParameterBlockStorageError returned.
Sourcepub fn set_parameter_block_variable(
&mut self,
block_index: usize,
) -> Result<(), ParameterBlockStorageError>
pub fn set_parameter_block_variable( &mut self, block_index: usize, ) -> Result<(), ParameterBlockStorageError>
Set parameter block to be variable during the optimization. Parameter block must be already added to the problem, otherwise ParameterBlockStorageError returned.
Sourcepub fn is_parameter_block_constant(
&self,
block_index: usize,
) -> Result<bool, ParameterBlockStorageError>
pub fn is_parameter_block_constant( &self, block_index: usize, ) -> Result<bool, ParameterBlockStorageError>
Check if parameter block is constant. Parameter block must be already added to the problem, otherwise ParameterBlockStorageError returned.
Sourcepub fn solve(
self,
options: &SolverOptions,
) -> Result<NllsProblemSolution, NllsProblemError>
pub fn solve( self, options: &SolverOptions, ) -> Result<NllsProblemSolution, NllsProblemError>
Solve the problem.
Trait Implementations§
Auto Trait Implementations§
impl<'cost> Freeze for NllsProblem<'cost>
impl<'cost> RefUnwindSafe for NllsProblem<'cost>
impl<'cost> !Send for NllsProblem<'cost>
impl<'cost> !Sync for NllsProblem<'cost>
impl<'cost> Unpin for NllsProblem<'cost>
impl<'cost> UnwindSafe for NllsProblem<'cost>
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