.. index:: pair: struct; gpr::priors::PriorPairFrame .. _doxid-structgpr_1_1priors_1_1_prior_pair_frame: struct gpr::priors::PriorPairFrame ================================== .. toctree:: :hidden: Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct PriorPairFrame { // fields std::vector :ref:`moving_numbers`; std::vector :ref:`fixed_positions`; std::vector :target:`fixed_numbers`; :ref:`geometry::PairBox` :target:`box`; // construction :target:`PriorPairFrame`(); :ref:`PriorPairFrame`(const :ref:`AtomsConfiguration`& config); // methods Eigen::Index :target:`coordinates`() const; bool :ref:`hasPair`() const; template void :ref:`forEachPair`(const Positions& positions, Visit&& visit) const; }; .. _details-structgpr_1_1priors_1_1_prior_pair_frame: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Fields ------ .. index:: pair: variable; moving_numbers .. _doxid-structgpr_1_1priors_1_1_prior_pair_frame_1a6e29f2b36cb44fb94fc4b0d7ec605054: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::vector moving_numbers Atomic numbers of the atoms the band moves, in band order. .. index:: pair: variable; fixed_positions .. _doxid-structgpr_1_1priors_1_1_prior_pair_frame_1aeab4e4933aa53ab2d90e7639e07783e9: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::vector fixed_positions Fixed atoms: Cartesian positions and atomic numbers. Construction ------------ .. index:: pair: function; PriorPairFrame .. _doxid-structgpr_1_1priors_1_1_prior_pair_frame_1a0a3d4223d243f27531de64d610228044: .. ref-code-block:: cpp :class: doxyrest-title-code-block PriorPairFrame(const :ref:`AtomsConfiguration`& config) Moving and fixed atoms from the frame's flags. A configuration without full-frame positions or flags is a band of every atom. Methods ------- .. index:: pair: function; hasPair .. _doxid-structgpr_1_1priors_1_1_prior_pair_frame_1a6463d3db60c6e106453df5ae776aaab1: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool hasPair() const True when some pair of atoms with known elements involves a moving atom. .. index:: pair: function; forEachPair .. _doxid-structgpr_1_1priors_1_1_prior_pair_frame_1a6126bc26049fe77aef0da382081d050e: .. ref-code-block:: cpp :class: doxyrest-title-code-block template void forEachPair(const Positions& positions, Visit&& visit) const Calls visit(i, j, Zi, Zj, d) for every moving-moving pair i < j and every moving-fixed pair, where d = x_i - x_j under the minimum image. A fixed partner has j == -1: it carries no coordinates.