Loading...
Searching...
No Matches
gpr::TrainingKernelGeometrySubset Struct Reference

#include <gpr/ml/GaussianProcessRegression.h>

Public Member Functions

void clear ()
const TrainingKernelGeometryBlock * find (Index_t block_n, Index_t block_m) const

Public Attributes

std::vector< TrainingKernelGeometryBlock > blocks
std::vector< FieldMatrixd > shared_distance_neg_per_pt
std::map< std::pair< Index_t, Index_t >, std::size_t > block_index_by_nm
Index_t n_rows = 0
Index_t n_cols = 0
bool valid = false

Detailed Description

Definition at line 172 of file GaussianProcessRegression.h.

Member Function Documentation

◆ clear()

void gpr::TrainingKernelGeometrySubset::clear ( )
inline

Definition at line 181 of file GaussianProcessRegression.h.

182 {
183 blocks.clear();
185 block_index_by_nm.clear();
186 n_rows = 0;
187 n_cols = 0;
188 valid = false;
189 }
std::vector< TrainingKernelGeometryBlock > blocks
std::vector< FieldMatrixd > shared_distance_neg_per_pt
std::map< std::pair< Index_t, Index_t >, std::size_t > block_index_by_nm

◆ find()

const TrainingKernelGeometryBlock * gpr::TrainingKernelGeometrySubset::find ( Index_t block_n,
Index_t block_m ) const
inlinenodiscard

Definition at line 190 of file GaussianProcessRegression.h.

192 {
193 auto it = block_index_by_nm.find({block_n, block_m});
194 if (it == block_index_by_nm.end()) return nullptr;
195 return &blocks[it->second];
196 }

Member Data Documentation

◆ block_index_by_nm

std::map<std::pair<Index_t, Index_t>, std::size_t> gpr::TrainingKernelGeometrySubset::block_index_by_nm

Definition at line 177 of file GaussianProcessRegression.h.

◆ blocks

std::vector<TrainingKernelGeometryBlock> gpr::TrainingKernelGeometrySubset::blocks

Definition at line 175 of file GaussianProcessRegression.h.

◆ n_cols

Index_t gpr::TrainingKernelGeometrySubset::n_cols = 0

Definition at line 179 of file GaussianProcessRegression.h.

◆ n_rows

Index_t gpr::TrainingKernelGeometrySubset::n_rows = 0

Definition at line 178 of file GaussianProcessRegression.h.

◆ shared_distance_neg_per_pt

std::vector<FieldMatrixd> gpr::TrainingKernelGeometrySubset::shared_distance_neg_per_pt

Definition at line 176 of file GaussianProcessRegression.h.

◆ valid

bool gpr::TrainingKernelGeometrySubset::valid = false

Definition at line 180 of file GaussianProcessRegression.h.


The documentation for this struct was generated from the following file: