Closed turnersr closed 2 months ago
Passing vectors and matrices via Eigen are tested as part of the nanobind test suite, and there this works just fine. Could you create a PR that adds a method to the test suite to get this to fail in a way that is easily reproducible for me? I will close this issue for now.
Problem description
Hello,
Really excited to try nanobind. I am attempting to create class using an Eigen Matrix and Vector. Oddly enough, using only vectors work but not matrices.
This works
But this fails:
Example with more code is below. Thank you for your help.
Reproducible example code
When using this Python code:
If however a matrix is used, then this will fail when being invoked from Python:
Here is how I try to create the object, same as before but now with a matrix:
Ultimately, my aim is to create class that can hold many different vectors and matrices and then be able to have a list of them:
Here is how I made the binding: