Template Function Karana::Models::KModelPybind11#
Defined in File pybind11KModel.h
Function Documentation#
-
template<class T, class P = NoParams, class Sc = NoScratch, class S = NoDiscreteStates, class C = NoContinuousStates>
auto Karana::Models::KModelPybind11(const std::string &class_name, py::module &m)# Create pybind11 bindings for the provided KModel.
- Template Parameters:
T – The KModel class to provide bindings for.
P – The Params class, if applicable.
Sc – The Scratch class, if applicable.
S – The DiscreteStates class, if applicable.
C – The ContinuousStates class, if applicable.
- Parameters:
class_name – The name for the class in Python.
m – The pybind11 module to add the class to.
- Returns:
The pybind11::class_ for this KModel.