.. index:: pair: struct; gpr::optim::PairRitzProbe .. _doxid-structgpr_1_1optim_1_1_pair_ritz_probe: struct gpr::optim::PairRitzProbe ================================ .. toctree:: :hidden: Overview ~~~~~~~~ Ritz curvatures of the mass-weighted Hessian on span(u, v), measured by central differences of the gradient (four calls). :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct PairRitzProbe { // fields bool :target:`measured` = false; double :target:`lower` = 0.0; double :target:`upper` = 0.0; double :ref:`asymmetry` = 0.0; Eigen::MatrixXd :ref:`points`; Eigen::MatrixXd :target:`gradients`; }; .. _details-structgpr_1_1optim_1_1_pair_ritz_probe: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Ritz curvatures of the mass-weighted Hessian on span(u, v), measured by central differences of the gradient (four calls). By Courant Fischer the second-smallest curvature of the whole Hessian is at most the larger Ritz curvature on any two-dimensional subspace, so a pair whose larger Ritz curvature is below minus the finite-difference resolution proves a second negative mode without the complete stencil. u and v are Cartesian directions; the pair is orthonormalized in the mass-weighted metric. Fields ------ .. index:: pair: variable; asymmetry .. _doxid-structgpr_1_1optim_1_1_pair_ritz_probe_1a41c26210bf5df782584f11e0b7c4fc25: .. ref-code-block:: cpp :class: doxyrest-title-code-block double asymmetry = 0.0 Half the asymmetry of the measured 2 x 2 block. .. index:: pair: variable; points .. _doxid-structgpr_1_1optim_1_1_pair_ritz_probe_1a34f94accacaf8736d57089d3cec4409e: .. ref-code-block:: cpp :class: doxyrest-title-code-block Eigen::MatrixXd points The four displaced points (columns) and their gradients (rows).