1 #include "AllClassWrappers.h"
5 #include <pybind11/pybind11.h>
6 #include <pybind11/stl.h>
7 #include <pybind11/eigen.h>
24 py::class_<KarhunenLoeveExpansion, std::shared_ptr<KarhunenLoeveExpansion>>
25 KLExpansion(m,
"KarhunenLoeveExpansion");
27 .def(py::init<std::shared_ptr<KernelBase>, Eigen::MatrixXd
const&,
28 Eigen::VectorXd
const&>())
29 .def(py::init( [](std::shared_ptr<KernelBase>
const& kern, Eigen::MatrixXd
const& pts,
31 .def(
"GetModes", &KarhunenLoeveExpansion::GetModes)
32 .def(
"Evaluate", &KarhunenLoeveExpansion::Evaluate);
Used to compute and evaluate the Karhunen-Loeve decomposition of a zero mean Gaussian process....
void KLWrapper(pybind11::module &m)
boost::property_tree::ptree ConvertDictToPtree(pybind11::dict dict)