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

#include <gpr/covariance_functions/SexpatCF.h>

Public Member Functions

 SexpatLocalOracleScope () noexcept
 ~SexpatLocalOracleScope () noexcept
 SexpatLocalOracleScope (const SexpatLocalOracleScope &)=delete
SexpatLocalOracleScope & operator= (const SexpatLocalOracleScope &)=delete

Public Attributes

bool prev_

Detailed Description

RAII guard: flips sexpat_local_oracle_active to true on construction and restores the saved value on destruction. Used by GaussianProcessRegression::fitSVGDFromScratch's grad_oracle lambda so the per-particle gradient compute picks up the OpenMP parallelism gated by use_openmp_local_oracle.

Definition at line 47 of file SexpatCF.h.

Constructor & Destructor Documentation

◆ SexpatLocalOracleScope() [1/2]

gpr::SexpatLocalOracleScope::SexpatLocalOracleScope ( )
inlinenoexcept

Definition at line 49 of file SexpatCF.h.

◆ ~SexpatLocalOracleScope()

gpr::SexpatLocalOracleScope::~SexpatLocalOracleScope ( )
inlinenoexcept

Definition at line 53 of file SexpatCF.h.

◆ SexpatLocalOracleScope() [2/2]

gpr::SexpatLocalOracleScope::SexpatLocalOracleScope ( const SexpatLocalOracleScope & )
delete

Member Function Documentation

◆ operator=()

SexpatLocalOracleScope & gpr::SexpatLocalOracleScope::operator= ( const SexpatLocalOracleScope & )
delete

Member Data Documentation

◆ prev_

bool gpr::SexpatLocalOracleScope::prev_

Definition at line 48 of file SexpatCF.h.


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