Loading...
Searching...
No Matches
ParamOpt.h
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2// Copyright (c) gpridge developers
3// See LICENSE for details.
4
5#ifndef GPR_ML_PARAMOPT_H_
6#define GPR_ML_PARAMOPT_H_
7
8#include <variant>
9
10// rgmin owns the SCG and L-BFGS loops on the shared GP objective.
11#include "RgminOpt.h"
12#include "RgminScg.h"
13#if defined(USE_CERES)
14#include "Ceres.h"
15#endif
16
17#if defined(USE_CERES)
18
19namespace funcmin {
20using ParamOptimizer = std::variant<RgminScg, RgminOpt, Ceres>;
21}
22
23#else
24
25namespace funcmin {
26using ParamOptimizer = std::variant<RgminScg, RgminOpt>;
27}
28
29#endif
30
31#endif // GPR_ML_PARAMOPT_H_
std::variant< RgminScg, RgminOpt > ParamOptimizer
Definition ParamOpt.h:26