pub trait TinySolver<const NUM_PARAMETERS: usize, const NUM_RESIDUALS: usize> {
    // Required method
    fn cost_function(
        _params: SVector<DualSVec64<NUM_PARAMETERS>, NUM_PARAMETERS>
    ) -> SVector<DualSVec64<NUM_PARAMETERS>, NUM_RESIDUALS>;

    // Provided method
    fn solve_inplace(params: &mut SVector<f64, NUM_PARAMETERS>) -> ProblemResult { ... }
}

Required Methods§

source

fn cost_function( _params: SVector<DualSVec64<NUM_PARAMETERS>, NUM_PARAMETERS> ) -> SVector<DualSVec64<NUM_PARAMETERS>, NUM_RESIDUALS>

Provided Methods§

source

fn solve_inplace(params: &mut SVector<f64, NUM_PARAMETERS>) -> ProblemResult

Object Safety§

This trait is not object safe.

Implementors§