.. index:: pair: namespace; dimer .. _doxid-namespacedimer: namespace dimer =============== .. toctree:: :hidden: class_dimer_Dimer.rst class_dimer_SphereRotation.rst Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block namespace dimer { // typedefs typedef uint32_t :target:`Index_t`; // classes class :ref:`Dimer`; class :ref:`SphereRotation`; // global functions Eigen::MatrixXd :ref:`rigid_motion_basis`(const :ref:`gpr::Coord`& R, bool rotations = true); double :ref:`project_out_rot_trans_with_feedback`(const :ref:`gpr::Coord`& R, Eigen::VectorXd& step); } // namespace dimer .. _details-namespacedimer: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Global Functions ---------------- .. index:: pair: function; rigid_motion_basis .. _doxid-namespacedimer_1a9cdf9b43468c4d05b4ef58ae34fc793d: .. ref-code-block:: cpp :class: doxyrest-title-code-block Eigen::MatrixXd rigid_motion_basis(const :ref:`gpr::Coord`& R, bool rotations = true) Build an orthonormal basis for rigid-body translations and rotations. This function constructs a basis for the 3 translational and 3 rotational degrees of freedom. It then orthonormalizes that basis with classical Gram-Schmidt, dropping any vector whose residual norm is at most 1e-9 (linear molecules lose one rotation). Periodic systems use translations only. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - R - The current atomic coordinates, used to define the rotational basis. * - rotations - Include rotational directions for non-periodic systems. .. rubric:: Returns: Orthonormal rigid-motion directions as columns. Orthonormal Cartesian symmetry directions as contiguous columns. Periodic systems request translations only; linear molecules lose one rotation. .. index:: pair: function; project_out_rot_trans_with_feedback .. _doxid-namespacedimer_1ad83c7b89fa4bbcf0737a84458063dfda: .. ref-code-block:: cpp :class: doxyrest-title-code-block double project_out_rot_trans_with_feedback(const :ref:`gpr::Coord`& R, Eigen::VectorXd& step) Project rigid-body motion out of a Cartesian optimization step. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - R - Current atomic coordinates defining the rigid-motion basis. * - step - The 3N-dimensional optimization step, modified in place. .. rubric:: Returns: L2 norm of the rigid-motion component removed from the step.