From 8ffa4d87c076b247a37251c52e56f08a20ace617 Mon Sep 17 00:00:00 2001 From: Dustin Spicuzza Date: Mon, 16 Dec 2024 01:22:14 -0500 Subject: [PATCH] Add additional Eigen matrix types --- robotpy_build/pkgcfg.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/robotpy_build/pkgcfg.py b/robotpy_build/pkgcfg.py index 2e6febce..eb2dd547 100644 --- a/robotpy_build/pkgcfg.py +++ b/robotpy_build/pkgcfg.py @@ -36,7 +36,11 @@ def get_type_casters_cfg(casters: Dict[str, Dict[str, Any]]) -> None: # Eigen support (requires numpy) "Eigen::Block": {"hdr": "pybind11/eigen.h"}, "Eigen::DiagonalMatrix": {"hdr": "pybind11/eigen.h"}, + "Eigen::MatrixBase": {"hdr": "pybind11/eigen.h"}, "Eigen::Matrix": {"hdr": "pybind11/eigen.h"}, + "Eigen::Matrix2d": {"hdr": "pybind11/eigen.h"}, + "Eigen::Matrix3d": {"hdr": "pybind11/eigen.h"}, + "Eigen::MatrixXcd": {"hdr": "pybind11/eigen.h"}, "Eigen::MatrixXd": {"hdr": "pybind11/eigen.h"}, "Eigen::MatrixXdR": {"hdr": "pybind11/eigen.h"}, "Eigen::MatrixXi": {"hdr": "pybind11/eigen.h"}, @@ -47,6 +51,7 @@ def get_type_casters_cfg(casters: Dict[str, Dict[str, Any]]) -> None: "Eigen::SparseMatrix": {"hdr": "pybind11/eigen.h"}, "Eigen::SparseView": {"hdr": "pybind11/eigen.h"}, "Eigen::Vector": {"hdr": "pybind11/eigen.h"}, + "Eigen::Vector2d": {"hdr": "pybind11/eigen.h"}, "Eigen::Vector3d": {"hdr": "pybind11/eigen.h"}, "Eigen::VectorXf": {"hdr": "pybind11/eigen.h"}, "Eigen::VectorXcf": {"hdr": "pybind11/eigen.h"},