.. index:: pair: struct; gpr::optim::SubspaceRitzProbe .. _doxid-structgpr_1_1optim_1_1_subspace_ritz_probe: struct gpr::optim::SubspaceRitzProbe ==================================== .. toctree:: :hidden: Overview ~~~~~~~~ Ritz curvatures of the mass-weighted Hessian on the span of several Cartesian directions, measured by central differences of the gradient, two calls per retained direction. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct SubspaceRitzProbe { // fields bool :target:`measured` = false; Eigen::VectorXd :ref:`values`; Eigen::MatrixXd :ref:`directions`; double :ref:`asymmetry` = 0.0; Eigen::MatrixXd :ref:`basis`; Eigen::MatrixXd :ref:`points`; Eigen::MatrixXd :target:`gradients`; }; .. _details-structgpr_1_1optim_1_1_subspace_ritz_probe: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Ritz curvatures of the mass-weighted Hessian on the span of several Cartesian directions, measured by central differences of the gradient, two calls per retained direction. The directions are orthonormalized in the mass-weighted metric in the order given and a direction inside the span of the earlier ones is dropped. By Courant Fischer the i-th smallest curvature of the whole Hessian is at most the i-th Ritz curvature, so a second Ritz curvature below minus the measurement's asymmetry proves a second negative mode without the complete stencil. Fields ------ .. index:: pair: variable; values .. _doxid-structgpr_1_1optim_1_1_subspace_ritz_probe_1a2b6d12793b31863fe4adcc107197aa5d: .. ref-code-block:: cpp :class: doxyrest-title-code-block Eigen::VectorXd values Ascending Ritz curvatures. .. index:: pair: variable; directions .. _doxid-structgpr_1_1optim_1_1_subspace_ritz_probe_1a78effe5ab2d1f42d68f255252db4d58f: .. ref-code-block:: cpp :class: doxyrest-title-code-block Eigen::MatrixXd directions Ritz vectors as unit Cartesian directions, one column per value. .. index:: pair: variable; asymmetry .. _doxid-structgpr_1_1optim_1_1_subspace_ritz_probe_1a6d32dfb1458b68d88d1bef4a6053759b: .. ref-code-block:: cpp :class: doxyrest-title-code-block double asymmetry = 0.0 Half the largest asymmetry of the measured block. .. index:: pair: variable; basis .. _doxid-structgpr_1_1optim_1_1_subspace_ritz_probe_1a867121b9756903fd2b152850bdcf02bb: .. ref-code-block:: cpp :class: doxyrest-title-code-block Eigen::MatrixXd basis Mass-weighted orthonormal basis measured (dof x m). .. index:: pair: variable; points .. _doxid-structgpr_1_1optim_1_1_subspace_ritz_probe_1a16b7afa66f0d28135ba764f97853546a: .. ref-code-block:: cpp :class: doxyrest-title-code-block Eigen::MatrixXd points The displaced points (columns) and their gradients (rows): the plus and the minus displacement of each basis column in turn.