Template Function PybindEigenTensor
Defined in File pybind_eigen.h
Function Documentation
-
template<typename Scalar, int Dims, typename ...InitArgs>
void PybindEigenTensor(pybind11::module &m, const char *name) Creates a class binding for an Eigen Tensor template. Supports both buffer protocol and eigen array wrappers to python types.
- Template Parameters:
Scalar – scalar datatype
Dims – number of dimensions
InitArgs – constructor argument types
- Parameters:
m – module
name – class name