22 Eigen::VectorXd masses;
23 Eigen::VectorXi frozen;
24 const Eigen::VectorXi* frozen_ptr =
nullptr;
25 bool anchored =
false;
26 bool periodic =
false;
33Eigen::MatrixXd stencilDirections(
const Frame& frame,
34 const Eigen::VectorXd& positions,
38 frame.periodic, frame.anchored,
42Frame frameFor(
const Eigen::VectorXd& positions,
43 const gpr::AtomsConfiguration* atoms)
46 const Eigen::Index dof = positions.size();
47 if (dof <= 0 || dof % 3 != 0 || !positions.allFinite())
return frame;
48 const Eigen::Index n_here = dof / 3;
49 frame.masses = Eigen::VectorXd::Ones(n_here);
50 if (atoms ==
nullptr) {
54 const Eigen::Index n_total = atoms->
is_frozen.size();
55 bool any_frozen =
false;
57 for (Eigen::Index atom = 0; atom < n_total; ++atom) {
63 if (any_frozen && n_here < n_total) {
65 frame.anchored =
true;
68 }
else if (n_total == n_here &&
72 }
catch (
const std::invalid_argument&) {
73 frame.masses = Eigen::VectorXd::Ones(n_here);
75 if (frame.masses.size() != n_here || !frame.masses.allFinite() ||
76 (frame.masses.array() <= 0.0).any()) {
77 frame.masses = Eigen::VectorXd::Ones(n_here);
79 if (any_frozen && n_here == n_total) {
80 frame.frozen.resize(n_here);
81 for (Eigen::Index atom = 0; atom < n_here; ++atom) {
85 frame.frozen_ptr = &frame.frozen;
92Eigen::MatrixXd surrogateHessian(gpr::GaussianProcessRegression& gp,
93 const Eigen::VectorXd& positions)
95 Eigen::MatrixXd hessian;
100double energyVariance(gpr::GaussianProcessRegression& gp,
101 const Eigen::VectorXd& positions)
103 gpr::Observation probe;
104 probe.
R.resize(1, positions.size());
105 probe.
R.row(0) = positions.transpose();
107 return probe.
E.size() > 0 ? probe.
E(0, 0)
108 : std::numeric_limits<double>::infinity();
113 int true_calls,
double variance,
double threshold)
119 decision.true_calls = true_calls;
120 decision.negative =
measured.negative;
121 decision.unresolved =
measured.unresolved;
122 decision.resolution =
measured.resolution;
123 decision.curvatures =
measured.curvatures;
125 decision.variance_threshold = threshold;
136 const Frame frame = frameFor(positions, atoms);
138 throw std::invalid_argument(
"invalid geometry for an oracle stencil");
139 return stencilDirections(frame, positions, stencil);
143 const Eigen::VectorXd& positions,
const Eigen::VectorXd& gradient,
145 double variance,
double variance_threshold,
double move,
150 const Frame frame = frameFor(positions, atoms);
151 if (!frame.usable)
return decision;
152 const Eigen::VectorXd* gradient_ptr =
153 gradient.size() == positions.size() && gradient.allFinite() ? &gradient
155 auto classify = [&](
const Eigen::MatrixXd& columns,
const char* source,
157 const Eigen::MatrixXd* measured =
nullptr) {
158 return fromMeasurement(
160 gradient_ptr, frame.frozen_ptr,
161 frame.anchored, measured),
162 source, true_calls, variance, variance_threshold);
177 const bool surrogate_geometry =
178 gp !=
nullptr && atoms !=
nullptr && atoms->
atoms_mov.
type.size() > 0 &&
180 if (surrogate_geometry) {
181 if (!std::isfinite(variance)) variance = energyVariance(*gp, positions);
182 const bool uncertain =
183 !std::isfinite(variance) || variance > variance_threshold;
184 const Eigen::MatrixXd hessian = surrogateHessian(*gp, positions);
185 if (hessian.rows() == positions.size() && hessian.allFinite()) {
186 auto surrogate = classify(hessian,
"surrogate", 0);
187 std::cout <<
"[neb] vibrational index: source=surrogate"
188 <<
" negative=" << surrogate.negative
189 <<
" unresolved=" << surrogate.unresolved
190 <<
" resolution=" << surrogate.resolution
191 <<
" variance=" << variance
192 <<
" threshold=" << variance_threshold <<
" true_calls=0"
193 <<
" pass=" << (surrogate.accept ?
"yes" :
"no") <<
"\n";
194 if (surrogate.checked && !uncertain && surrogate.unresolved == 0 &&
195 surrogate.negative <= 2) {
201 surrogate.checked =
true;
202 surrogate.accept =
true;
208 if (oracle ==
nullptr || !(stencil_step > 0.0) ||
209 !std::isfinite(stencil_step)) {
217 !frame.anchored && frame.frozen_ptr ==
nullptr &&
223 const Eigen::MatrixXd directions =
224 stencilDirections(frame, positions, stencil);
226 if (gradient_ptr !=
nullptr) {
230 *oracle, center, batch, batch_chunk);
233 positions, stencil_step, directions, *oracle, batch, batch_chunk);
236 if (!oracle_stencil.
complete())
return decision;
239 true_calls =
static_cast<int>(oracle_stencil.
positions.cols() -
240 (gradient_ptr ? 1 : 0));
242 if (columns.rows() != positions.size())
return decision;
244 columns, positions, frame.masses, move, gradient_ptr, frame.frozen_ptr,
246 auto truth = fromMeasurement(measured,
"true", true_calls, variance,
248 std::cout <<
"[neb] vibrational index: source=true"
249 <<
" negative=" << truth.negative
250 <<
" unresolved=" << truth.unresolved
251 <<
" resolution=" << truth.resolution
252 <<
" true_calls=" << truth.true_calls
253 <<
" pass=" << (truth.accept ?
"yes" :
"no") <<
" eigenvalues=[";
254 for (Eigen::Index i = 0; i < measured.curvatures.size(); ++i) {
255 if (i > 0) std::cout <<
",";
256 std::cout << measured.curvatures(i);
276 if (decision.
accept)
return;
278 auto& path = *result.
path;
279 const bool interior = image > 0 && image < path.numImages() - 1;
280 const bool budget_left =
282 decision.
step.size() == path.image(image).positions.size() &&
283 decision.
step.allFinite();
288 std::cout <<
"[neb] vibrational index: action=refuse"
289 <<
" negative=" << decision.
negative
292 <<
" budget=" << outer_budget <<
"\n";
295 path.image(image).positions += decision.
step;
296 path.image(image).evaluated =
false;
298 std::cout <<
"[neb] vibrational index: action=continue"
299 <<
" negative=" << decision.
negative
301 <<
" step=" << decision.
step.norm()
303 <<
" budget=" << outer_budget <<
"\n";
308struct StencilRecord {
310 VibrationalIndexMeasurement index;
311 CartesianOracleStencil stencil;
314std::map<std::string, StencilRecord> stencil_cache;
316std::string geometryKey(
const Eigen::VectorXd& center,
319 std::ostringstream
out;
320 out.setf(std::ios::fixed);
322 for (Eigen::Index i = 0; i < center.size(); ++i) {
334 stencil_cache.clear();
341 std::ofstream
out(archive_dir +
"/force-stop-handoff.bin",
346 const int magic = 0x46534832;
359 out.write(
reinterpret_cast<const char*
>(&magic),
sizeof magic);
360 out.write(
reinterpret_cast<const char*
>(&dof),
sizeof dof);
361 out.write(
reinterpret_cast<const char*
>(&npts),
sizeof npts);
362 out.write(
reinterpret_cast<const char*
>(&nmodes),
sizeof nmodes);
365 out.write(
reinterpret_cast<const char*
>(&flags),
sizeof flags);
366 if (npts > 0 && dof > 0) {
375 out.write(
reinterpret_cast<const char*
>(&nenergy),
sizeof nenergy);
379 sizeof(
double) * nenergy);
382 sizeof(
double) *
static_cast<std::size_t
>(dof * nmodes));
386 const std::string& archive_dir,
const Eigen::VectorXd& center)
388 if (archive_dir.empty() || center.size() == 0)
return std::nullopt;
389 std::ifstream in(archive_dir +
"/force-stop-handoff.bin", std::ios::binary);
390 if (!in)
return std::nullopt;
391 int magic = 0, dof = 0, npts = 0, flags = 0, nenergy = 0, nmodes = 0;
393 in.read(
reinterpret_cast<char*
>(&magic),
sizeof magic);
394 in.read(
reinterpret_cast<char*
>(&dof),
sizeof dof);
395 in.read(
reinterpret_cast<char*
>(&npts),
sizeof npts);
396 const bool version2 = magic == 0x46534832;
397 if (version2) in.read(
reinterpret_cast<char*
>(&nmodes),
sizeof nmodes);
398 in.read(
reinterpret_cast<char*
>(&step),
sizeof step);
399 in.read(
reinterpret_cast<char*
>(&flags),
sizeof flags);
400 if (!in || (magic != 0x46534831 && magic != 0x46534832) || dof < 0 ||
401 npts < 0 || nmodes < 0)
407 stencil.
deferred = version2 && (flags & 4) != 0;
408 if (stencil.
deferred && npts == 0)
return stencil;
409 if (dof != center.size() || npts <= 0 || dof <= 0)
return std::nullopt;
412 in.read(
reinterpret_cast<char*
>(stencil.
positions.data()),
413 sizeof(
double) * stencil.
positions.size());
414 in.read(
reinterpret_cast<char*
>(stencil.
gradients.data()),
415 sizeof(
double) * stencil.
gradients.size());
416 in.read(
reinterpret_cast<char*
>(&nenergy),
sizeof nenergy);
418 stencil.
energies.resize(
static_cast<std::size_t
>(nenergy));
419 in.read(
reinterpret_cast<char*
>(stencil.
energies.data()),
420 sizeof(
double) *
static_cast<std::size_t
>(nenergy));
422 if (version2 && nmodes > 0) {
424 in.read(
reinterpret_cast<char*
>(stencil.
lowest_modes.data()),
427 if (!in || stencil.
positions.cols() < 1)
return std::nullopt;
429 Eigen::MatrixXd held_center(stencil.
center.size(), 1);
430 held_center.col(0) = stencil.
center;
441 const Eigen::Index dof = handoff.
positions.rows();
442 if (handoff.
gradients.cols() != dof)
return 0;
443 if (observations.
R.cols() != 0 && observations.
R.cols() != dof)
return 0;
445 for (Eigen::Index col = 0; col < handoff.
positions.cols(); ++col) {
446 if (col >= handoff.
gradients.rows())
break;
447 const Eigen::VectorXd position = handoff.
positions.col(col);
448 const Eigen::VectorXd gradient = handoff.
gradients.row(col).transpose();
449 if (!position.allFinite() || !gradient.allFinite())
continue;
453 const Eigen::Index row = observations.
R.rows();
454 observations.
R.conservativeResize(row + 1, dof);
455 observations.
E.conservativeResize(row + 1, 1);
456 observations.
G.conservativeResize(row + 1, dof);
457 observations.
R.row(row) = position.transpose();
458 observations.
E(row, 0) =
459 col < static_cast<Eigen::Index>(handoff.
energies.size())
460 ? handoff.
energies[
static_cast<std::size_t
>(col)]
462 observations.
G.row(row) = gradient.transpose();
471 if (orient.rows() != 1 || handoff.
lowest_modes.cols() < 1 ||
475 if (!mode.allFinite() || !(mode.norm() > 0.0))
return false;
477 orient.row(0) = mode.transpose();
489 if (image <= 0 || image >= path.
numImages() - 1)
return;
490 auto& climbing = path.
image(image);
491 if (!climbing.evaluated || !std::isfinite(path.
saddleForce(image)) ||
498 const Frame frame = frameFor(climbing.positions, atoms);
499 if (!frame.usable)
return;
505 stencil_cache.find(geometryKey(climbing.positions, stencil_mode)) !=
512 [] {
return -1; }, plan);
520 std::cout <<
"[neb] force-stop stencil: deferred to the saddle stage\n";
525 const Eigen::VectorXd stopped_at = climbing.
positions;
528 const auto measure_once = [&]() {
530 const Eigen::VectorXd center = climbing.positions;
531 const std::string key = geometryKey(center, stencil_mode);
532 const auto cached = stencil_cache.find(key);
533 if (cached != stencil_cache.end()) {
534 latest = cached->second.index;
535 stencil = cached->second.stencil;
536 measured = cached->second.measurement;
538 std::cout <<
"[neb] force-stop stencil: cached geometry"
540 <<
" first_order=" << measured.first_order
541 <<
" higher_order=" << measured.higher_order <<
"\n";
544 const bool reuse = climbing.gradient.size() == center.size() &&
545 climbing.gradient.allFinite() &&
546 std::isfinite(climbing.energy);
547 const Eigen::MatrixXd directions =
548 stencilDirections(frame, center, stencil_mode);
553 center, step, directions, oracle, held, &config.
batch_oracle,
561 ?
static_cast<int>(stencil.
positions.cols() -
565 if (columns.rows() == center.size() && frame.usable) {
566 const Eigen::VectorXd* gradient =
567 reuse ? &climbing.gradient :
nullptr;
569 columns, center, frame.masses, step, gradient, frame.frozen_ptr,
572 measured.first_order = latest.
pass;
573 measured.higher_order = latest.
negative > 1;
575 std::cout <<
"[neb] force-stop stencil: negative=" << latest.
negative
577 <<
" calls=" << measured.calls
578 <<
" first_order=" << measured.first_order
579 <<
" higher_order=" << measured.higher_order <<
"\n";
580 stencil_cache[key] = StencilRecord{measured, latest, stencil};
589 stencil_cache.find(geometryKey(climbing.positions, stencil_mode));
591 if (cached != stencil_cache.end()) {
592 prior = cached->second.measurement;
594 stencil = cached->second.stencil;
595 latest = cached->second.index;
597 if (columns.rows() == climbing.positions.size() &&
598 frame.masses.size() * 3 == climbing.positions.size()) {
601 columns, climbing.positions, frame.masses, 4,
605 prior.
center = climbing.positions;
610 measure_once, [] {
return -1; }, plan, &prior);
615 if (latest.
step.size() != climbing.positions.size() ||
616 !latest.
step.allFinite())
618 climbing.positions += latest.
step;
619 const auto sample = oracle(climbing.positions);
620 if (!std::isfinite(sample.first) ||
621 sample.second.size() != climbing.positions.size() ||
622 !sample.second.allFinite())
624 climbing.energy = sample.first;
625 climbing.gradient = sample.second;
626 climbing.evaluated =
true;
627 std::cout <<
"[neb] force-stop stencil: one soft-mode step\n";
634 double length = latest.
step.norm();
635 Eigen::VectorXd direction =
636 latest.
step.size() == climbing.positions.size() && length > 0.0
637 ? latest.
step / length
641 direction.size() == climbing.positions.size();
644 const Eigen::VectorXd trial =
645 climbing.positions + length * direction;
646 const auto sample = oracle(trial);
647 if (!std::isfinite(sample.first) ||
648 sample.second.size() != trial.size() ||
649 !sample.second.allFinite())
651 climbing.positions = trial;
652 climbing.energy = sample.first;
653 climbing.gradient = sample.second;
654 climbing.evaluated =
true;
655 std::cout <<
"[neb] force-stop stencil: min-mode escape\n";
657 outcome.
calls += measured.calls + 1;
662 !measured.higher_order;
666 measured.higher_order &&
670 if (latest.
step.size() == direction.size() &&
671 latest.
step.norm() > 0.0)
672 direction = latest.
step / latest.
step.norm();
684 (climbing.positions - stopped_at).norm() > 0.0) {
687 if (!(std::isfinite(force) && force < config.
conv_tol)) {
688 std::cout <<
"[neb] force-stop stencil: the stepped image has"
689 <<
" force=" << force
690 <<
" above tolerance=" << config.
conv_tol
691 <<
"; the band resumes\n";
710 static_cast<Eigen::Index
>(stencil.
observations.energy.size()));
739 const Eigen::MatrixXd final_columns =
742 frame.masses.size() * 3 == climbing.positions.size()
745 if (final_columns.rows() == climbing.positions.size()) {
746 const Eigen::MatrixXd& columns = final_columns;
748 columns, climbing.positions, frame.masses, &stencil.
directions);
750 const auto gradients = [&](
const Eigen::MatrixXd& points) {
751 probes +=
static_cast<int>(points.cols());
752 Eigen::MatrixXd measured(points.cols(), points.rows());
753 for (Eigen::Index j = 0; j < points.cols(); ++j) {
754 const auto sample = oracle(points.col(j));
755 if (!std::isfinite(sample.first) ||
756 sample.second.size() != points.rows() ||
757 !sample.second.allFinite())
758 return Eigen::MatrixXd();
759 measured.row(j) = sample.second.transpose();
764 index, climbing.positions, frame.masses, step, gradients);
768 if (certificate.refinement_points.cols() > 0 &&
769 certificate.refinement_gradients.rows() ==
770 certificate.refinement_points.cols()) {
772 certificate.refinement_points.transpose();
774 certificate.refinement_gradients;
778 certificate.negative_pair_upper;
781 certificate.higher_order;
783 certificate.first_order && !certificate.higher_order;
789 if (certificate.higher_order && !certificate.first_order &&
803 const long cap =
static_cast<long>(config.
max_outer_iter) * n_images;
804 return static_cast<int>(
805 std::min<long>(cap, std::numeric_limits<int>::max()));
void calculateVarianceDispatched(Observation &image1)
bool calculateMeanHessian(const Coord &R, Eigen::MatrixXd &hessian)
Dense Hessian of the physical posterior mean at one geometry.
NEB path: chain of images between two endpoints.
Image & image(int i)
Access image i.
double saddleForce(int i) const
eon_relax_band_t eon_relax_surface_fn void eon_relax_outcome_t * out
bool cellIsMicLattice(const double cell[9]) noexcept
Nonzero ASE 3x3 that is not the 25 A vacuum convention.
Half measured(const GradientOracle &oracle, const Eigen::VectorXd &x, Kind kind, const Options &options)
Full central difference of the oracle gradient: 2 d calls.
The nudged elastic band: path, GP-NEB driver, configuration and result, acquisition,...
std::function< std::vector< std::pair< double, Eigen::VectorXd > >( const std::vector< Eigen::VectorXd > &positions)> NEBBatchOracle
int vibrationalIndexOuterBudget(const GPNEBConfig &config, int n_images)
Outer-iteration cap, including the per-image reading.
VibrationalIndexDecision decideVibrationalIndex(const Eigen::VectorXd &positions, const Eigen::VectorXd &gradient, const gpr::AtomsConfiguration *atoms, gpr::GaussianProcessRegression *gp, double variance, double variance_threshold, double move, double stencil_step, const NEBOracle *oracle, const NEBBatchOracle *batch, Eigen::Index batch_chunk, gpr::optim::VibrationalStencil stencil)
std::function< std::pair< double, Eigen::VectorXd >( const Eigen::VectorXd &positions)> NEBOracle
Oracle function: positions -> (energy, gradient).
bool seedDimerModeFromForceStop(gpr::Coord &orient, const ForceStopHandoffStencil &handoff)
void writeForceStopHandoff(const std::string &archive_dir, const GPNEBResult &result)
int appendForceStopObservations(gpr::Observation &observations, const ForceStopHandoffStencil &handoff)
std::optional< ForceStopHandoffStencil > readForceStopHandoff(const std::string &archive_dir, const Eigen::VectorXd ¢er)
CartesianOracleStencil evaluateCartesianOracleStencil(const Eigen::VectorXd ¢er, double displacement, const Eigen::MatrixXd &directions, const Oracle &oracle, const NEBBatchOracle *batch_oracle=nullptr, Eigen::Index batch_chunk=0)
VibrationalIndexMeasurement indexFromCartesianColumns(const Eigen::MatrixXd &columns, const Eigen::VectorXd &positions, const Eigen::VectorXd &masses, double move, const Eigen::VectorXd *center_gradient=nullptr, const Eigen::VectorXi *frozen=nullptr, bool anchored=false, const Eigen::MatrixXd *measured=nullptr)
Eigen::MatrixXd stencilHessianColumns(const CartesianOracleStencil &stencil)
void resetForceStopStencilCache()
void applyVibrationalIndexDecision(GPNEBResult &result, const VibrationalIndexDecision &decision, int outer_budget)
void certifyForceStoppedNeb(GPNEBResult &result, NEBOracle &oracle, const GPNEBConfig &config, const gpr::AtomsConfiguration *atoms)
Eigen::MatrixXd oracleStencilDirections(const Eigen::VectorXd &positions, const gpr::AtomsConfiguration *atoms, gpr::optim::VibrationalStencil stencil)
constexpr double stencilStepOrDefault(double requested) noexcept
The requested stencil step, or the default when none was requested.
StencilIndexCertificate certifyAdaptiveStencilIndex(const StencilIndex &index, const Eigen::VectorXd &positions, const Eigen::VectorXd &masses, double step, const Gradients &gradients, double noise_multiplier=0.0)
Eigen::Index forceStopHeldColumn(const Eigen::MatrixXd &held, const Eigen::VectorXd &query, double relative=1e-6)
Eigen::MatrixXd forceStopLowestModes(const Eigen::MatrixXd &columns, const Eigen::VectorXd &positions, const Eigen::VectorXd &masses, Eigen::Index count, const Eigen::MatrixXd *measured=nullptr)
Eigen::MatrixXd vibrationalComplement(const Eigen::VectorXd &positions, const Eigen::VectorXd &masses)
Eigen::VectorXd movingAtomicMasses(const gpr::AtomsConfiguration &config, Eigen::Index n_moving)
StencilIndex analyzeStencilIndex(const Eigen::MatrixXd &columns, const Eigen::VectorXd &positions, const Eigen::VectorXd &masses, const Eigen::MatrixXd *measured=nullptr)
Eigen::MatrixXd stencilDirectionsForMode(VibrationalStencil mode, const Eigen::VectorXd &positions, const Eigen::VectorXd &masses, bool periodic, bool anchored, const Eigen::VectorXi *frozen=nullptr)
bool forceStopStencilCertifies(bool measured, bool first_order) noexcept
ForceStopStencilPlan planForceStopStencil(ForceStopStencilQuery query)
constexpr int forceStopMinModeEscapes() noexcept
Min-mode escapes after a higher-order certificate, for every search.
ForceStopCertificateResult runForceStopCertificate(Measure measure, Refine refine, ForceStopStencilPlan plan, const ForceStopMeasurement *prior=nullptr)
double variance(const Weights &w, const Matrix &covariance)
Stores configurations of all atoms in the system.
FieldMatrixU8 is_frozen
Indicates whether atom is frozen or not.
AtomsPositionAndType atoms_mov
Info on moving atoms.
Eigen::VectorXd atomic_masses
Per-atom input masses; empty selects unit masses.
Observation data: energy, gradient and positions.
std::vector< int > measured
1 for a mode at least 99% inside the measured directions.
Eigen::MatrixXd directions
detail::OwnedImageState observations
Eigen::MatrixXd positions
Eigen::MatrixXd gradients
Eigen::MatrixXd lowest_modes
Lowest Cartesian modes, lowest curvature first.
Eigen::MatrixXd positions
std::vector< double > energies
Configuration for GP-NEB.
Eigen::Index oracle_batch_chunk
bool outer_budget_per_image
NEBBatchOracle batch_oracle
bool force_stop_certificate
gpr::optim::VibrationalStencil vibrational_stencil
bool saddle_stage_follows
int index_gate_true_calls
bool index_refused
A force-quiet point failed the index-1 gate and no budget remains.
Eigen::MatrixXd force_stop_positions
double force_stop_negative_pair_upper
bool index_checked
The vibrational-index gate ran on this result.
Eigen::MatrixXd force_stop_modes
Lowest Cartesian modes of the measured Hessian, lowest first.
Eigen::VectorXd force_stop_energies
Eigen::MatrixXd force_stop_refinement_positions
double force_stop_negative_upper
double returned_true_force
bool force_stop_center_reused
GPNEBConvergenceStatus convergence_status
bool force_stop_refinement_recorded
Eigen::MatrixXd force_stop_gradients
Eigen::MatrixXd force_stop_refinement_gradients
double force_stop_positive_lower
bool index_continue
The gate stepped the climbing image; the caller resumes the search.
bool force_stop_deferred
The saddle owns the index. This stage did not measure a stencil.
bool force_stop_refinement_higher_order
int oracle_calls_validation
int force_stop_certificate_calls
std::unique_ptr< NEBPath > path
Eigen::MatrixXd force_stop_directions
Orthonormal Cartesian directions of that stencil, one column each.
bool force_stop_certified
double force_stop_displacement
bool force_stop_inconclusive
The stencil was measured and did not resolve an index.
Float64 central-difference index of one geometry.
bool needs_min_mode_escape
ForceStopMeasurement handed
bool hand_off
A following saddle receives handed.
Eigen::MatrixXd positions
Eigen::VectorXd center
Stencil geometries (columns) and gradients (rows) already paid for.
Eigen::MatrixXd gradients
Eigen::MatrixXd lowest_modes
bool defer_certificate
Do not measure. The following saddle certifies the point it reaches.
bool following_stage_owns_certificate
bool columns_already_measured
Finite-difference columns at this geometry were already paid for.
SaddleSearchFamily family