.. index:: pair: struct; gpr::FactoredTrainingGeometry .. _doxid-structgpr_1_1_factored_training_geometry: struct gpr::FactoredTrainingGeometry ==================================== .. toctree:: :hidden: Overview ~~~~~~~~ Factored training geometry: the inverse-distance features Q (n_conf x d_feat) and their Jacobian per coordinate dimension J[d] (n_conf x d_feat). :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct FactoredTrainingGeometry { // fields :ref:`EigenMatrix` :ref:`Q`; std::vector<:ref:`EigenMatrix`> :ref:`J`; std::vector`>> :target:`features_by_pt`; :ref:`Index_t` :target:`n_pt` = 0; bool :target:`valid` = false; }; .. _details-structgpr_1_1_factored_training_geometry: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Factored training geometry: the inverse-distance features Q (n_conf x d_feat) and their Jacobian per coordinate dimension J[d] (n_conf x d_feat). Every derivative block of the pair-type distance d_pt(i,j) = sum\_{f in pt} (:ref:`Q(i,f) ` - :ref:`Q(j,f) `)^2 is a sum of separable terms in (i,j): d12 = -2 J_n[:,F] J_m[:,F]^T, d1 = 2 c_n 1^T - 2 J_n[:,F] Q[:,F]^T, c_n(i) = sum_f J_n(i,f) :ref:`Q(i,f) `, d2 = 2 1 c_m^T - 2 Q[:,F] J_m[:,F]^T, so a block is three small matrix products of rank at most the number of force rows plus one instead of a walk over atom pairs, and the factors are O(n_conf d_feat D) in memory. Fields ------ .. index:: pair: variable; Q .. _doxid-structgpr_1_1_factored_training_geometry_1a56714e97d0e86401c6ca2f847bffd53a: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`EigenMatrix` Q n_conf x d_feat .. index:: pair: variable; J .. _doxid-structgpr_1_1_factored_training_geometry_1a540af9c65963d4dbfb39dca1b6e8bd39: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::vector<:ref:`EigenMatrix`> J per dimension, n_conf x d_feat