Rewind through the descent history

This commit is contained in:
Aaron Fenyes 2025-08-21 14:49:32 -04:00
parent af18a8e7d1
commit 36036141b5
6 changed files with 152 additions and 19 deletions

View file

@ -353,7 +353,7 @@ fn seek_better_config(
// a first-order neighborhood of a configuration
pub struct ConfigNeighborhood {
pub config: DMatrix<f64>,
#[cfg(feature = "dev")] pub config: DMatrix<f64>,
pub nbhd: ConfigSubspace,
}
@ -388,7 +388,7 @@ pub fn realize_gram(
if assembly_dim == 0 {
let result = Ok(
ConfigNeighborhood {
config: guess.clone(),
#[cfg(feature = "dev")] config: guess.clone(),
nbhd: ConfigSubspace::zero(0),
}
);
@ -509,7 +509,7 @@ pub fn realize_gram(
// find the kernel of the Hessian. give it the uniform inner product
let tangent = ConfigSubspace::symmetric_kernel(hess, unif_to_std, assembly_dim);
Ok(ConfigNeighborhood { config: state.config, nbhd: tangent })
Ok(ConfigNeighborhood { #[cfg(feature = "dev")] config: state.config, nbhd: tangent })
} else {
Err("Failed to reach target accuracy".to_string())
};