Loading...
Searching...
No Matches
neb_request.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2// Copyright (c) gpridge developers
3// See LICENSE for details.
4//
5// The lifetime of the per-thread SIDPP request that gpr_neb_request_sidpp
6// sets. This is internal to the library and its bindings. It is not part of
7// the C ABI and is not installed.
8
9#ifndef GPR_CAPI_NEB_REQUEST_HPP
10#define GPR_CAPI_NEB_REQUEST_HPP
11
12namespace gpr {
13namespace capi {
14namespace detail {
15
18void clear_sidpp_request() noexcept;
19
22void clear_vibrational_stencil_request() noexcept;
23
29class NebRequestScope {
30public:
31 NebRequestScope() = default;
32 NebRequestScope(const NebRequestScope&) = delete;
33 NebRequestScope& operator=(const NebRequestScope&) = delete;
34 ~NebRequestScope()
35 {
36 clear_sidpp_request();
37 clear_vibrational_stencil_request();
38 }
39};
40
41} // namespace detail
42} // namespace capi
43} // namespace gpr
44
45#endif
Gaussian-process regression, kernels, priors, and the searches that run on the surrogate.
Definition Macros.h:16