.. index:: pair: struct; gpr::TrainingKernelGeometry .. _doxid-structgpr_1_1_training_kernel_geometry: struct gpr::TrainingKernelGeometry ================================== .. toctree:: :hidden: Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct TrainingKernelGeometry { // fields std::vector<:ref:`TrainingKernelGeometryBlock`> :target:`blocks`; bool :ref:`shared_coordinates` = true; std::vector<:ref:`FieldMatrixd`> :target:`shared_distance_neg_per_pt`; Eigen::VectorXd :target:`uDdim`; :ref:`Index_t` :target:`num_repetitive_indices` = 0; Eigen::Index :target:`n` = 0; bool :target:`valid` = false; std::map`, :ref:`Index_t`>, std::size_t> :target:`block_index_by_nm`; :ref:`Index_t` :target:`n_pairtypes` = 0; :ref:`TrainingKernelGeometrySubset` :target:`rows_cols`; :ref:`TrainingKernelGeometrySubset` :target:`cols_rows`; bool :target:`has_per_rank_subset` = false; bool :ref:`streamed` = false; std::vector<:ref:`FieldMatrixd`> :ref:`x_loc_by_dim`; :ref:`FactoredTrainingGeometry` :ref:`factors`; std::shared_ptr<:ref:`LazyFactoredTrainingGeometry`> :target:`lazy_factors`; :ref:`pairlocal::Geometry` :ref:`pair_local`; // methods void :target:`clear`(); const :ref:`TrainingKernelGeometryBlock`* :target:`find`(:ref:`Index_t` block_n, :ref:`Index_t` block_m) const; }; .. _details-structgpr_1_1_training_kernel_geometry: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Fields ------ .. index:: pair: variable; shared_coordinates .. _doxid-structgpr_1_1_training_kernel_geometry_1a36bfd8bcc22af2594eea5dc63b191a2d: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool shared_coordinates = true Channel blocks carry the same Cartesian positions. .. index:: pair: variable; streamed .. _doxid-structgpr_1_1_training_kernel_geometry_1affb3eea40b9e38076c9851a0ec8b6e45: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool streamed = false Streamed geometry: the per-block derivative tensors (three per-pair-type n_conf x n_conf fields for each of the (1+D)(2+D)/2 blocks) are not cached; each consumer rebuilds a block's tensors from the stored per-dimension coordinate blocks as it walks the blocks. Chosen for distinct channel positions or when the cache would not fit the available memory (16_h2po4_anion: 15 GB at 225 rows and 22 dof, the OOM killer at 300); costs one geometry build per assembly instead of one per prepare. .. index:: pair: variable; x_loc_by_dim .. _doxid-structgpr_1_1_training_kernel_geometry_1a9b9b4f28660c6baebce16c0f3d7ab15a: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::vector<:ref:`FieldMatrixd`> x_loc_by_dim indexed by dimension value .. index:: pair: variable; factors .. _doxid-structgpr_1_1_training_kernel_geometry_1a7f76e126eb7c05d6ff17793e3aecbf71: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`FactoredTrainingGeometry` factors streamed blocks come from here .. index:: pair: variable; pair_local .. _doxid-structgpr_1_1_training_kernel_geometry_1aab49dafe3e29d52379da156985c4ae8e: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`pairlocal::Geometry` pair_local Pair-local tiles: the joint covariance and its hyperparameter contractions per configuration pair, the assembly and gradient of choice whenever it is valid.