Skip to content

Returning Eigen::Matrix as multi-dimensional ndarray #185

Closed Answered by wjakob
eduardohenriquearnold asked this question in Q&A
Discussion options

You must be logged in to vote

Based on the specificity of the question, I would say it is outside the scope of this project. Options might be to write wrappers/adapters that you can then bind using nanobind (with nb::cast), or further wrapping code in Python that adapts the shape of the returned numpy arrays (probably the easier route).

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@eduardohenriquearnold
Comment options

@WKarel
Comment options

@eduardohenriquearnold
Comment options

Answer selected by eduardohenriquearnold
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants