Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot slice std::vector of Eigen types #414

Open
ManifoldFR opened this issue Dec 4, 2023 · 0 comments
Open

Cannot slice std::vector of Eigen types #414

ManifoldFR opened this issue Dec 4, 2023 · 0 comments
Assignees

Comments

@ManifoldFR
Copy link
Member

As I noted in PR #412, the exposed std::vector<Eigen::Matrix> types cannot be sliced. I think this is due to the definition of __getitem__ in the visitor overload_base_get_item_for_std_vector here. It seems it doesn't handle the case where the underlying "index" PyObject is actually a Python slice (boost::python::slice) object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant