fn update_temperature(&mut self) {
        self.cur_temp = match self.temp_func {
            SATempFunc::TemperatureFast => {
                self.init_temp / F::from_u64(self.temp_iter + 1).unwrap()
            }
            SATempFunc::Boltzmann => self.init_temp / F::from_u64(self.temp_iter + 1).unwrap().ln(),
            SATempFunc::Exponential(x) => {
                self.init_temp * x.powf(F::from_u64(self.temp_iter + 1).unwrap())
            }
        };
    }
/// Update the temperature based on the current iteration number.
///
/// Updates are performed based on specific update functions. See `SATempFunc` for details.
Update the temperature based on the current iteration number.
Updates are performed based on specific update functions. See `SATempFunc` for details.
Update the temperature based on the current iteration number . Updates are performed based on specific update functions . See ` SATempFunc ` for details .
fn update_temperature(&mut self) {
        self.cur_temp = match self.temp_func {
            SATempFunc::TemperatureFast => {
                self.init_temp / F::from_u64(self.temp_iter + 1).unwrap()
            }
            SATempFunc::Boltzmann => self.init_temp / F::from_u64(self.temp_iter + 1).unwrap().ln(),
            SATempFunc::Exponential(x) => {
                self.init_temp * x.powf(F::from_u64(self.temp_iter + 1).unwrap())
            }
        };
    }
fn update_temperature ( & mut self ) { self . cur_temp = match self . temp_func { SATempFunc :: TemperatureFast => { self . init_temp / F :: from_u64 ( self . temp_iter + 1 ) . unwrap ( ) } SATempFunc :: Boltzmann => self . init_temp / F :: from_u64 ( self . temp_iter + 1 ) . unwrap ( ) . ln ( ) , SATempFunc :: Exponential ( x ) => { self . init_temp * x . powf ( F :: from_u64 ( self . temp_iter + 1 ) . unwrap ( ) ) } } ; }
Update the temperature based on the current iteration number.
Update the temperature based on the current iteration number .
&mut self