Class PyKernel¶
Defined in File Python.cpp
Inheritance Relationships¶
Base Type¶
public Kernel(Class Kernel)
Class Documentation¶
-
class PyKernel : public Kernel¶
This is a wrapper / trampoline class to pass the Kernel interface to the Python-side of things.
Public Functions
-
inline virtual data_t operator()(std::vector<data_t> const &x1, std::vector<data_t> const &x2) const override¶
Evaluates the kernel on the two given parameters x1, x2.
- Parameters
x1 – The first parameter of the kernel.
x2 – The second parameter of the kernel.
-
inline ~PyKernel()¶
-
inline virtual std::shared_ptr<Kernel> clone() const override¶
Clones the current kernel object and returns a shared pointer to the copy.
Note
Clones should be a deep copy of the object, because a SubmodularOptimizer might generate multiple copies of this kernel if required.
-
inline virtual data_t operator()(std::vector<data_t> const &x1, std::vector<data_t> const &x2) const override¶