pub fn apply_negative_parameter_step(
variables: &mut HashMap<String, VariableEnum>,
step: MatRef<'_, f64>,
variable_order: &[String],
)Expand description
Apply negative parameter step to rollback variables.
This is used when an optimization step is rejected (e.g., in trust region methods). It applies the negative of a tangent space perturbation to revert the previous update.
ยงArguments
variables- Mutable map of variables to revertstep- Full step vector in tangent space (faer matrix view) to negatevariable_order- Ordered list of variable names (defines indexing into step vector)