Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upStandardize xtensor_type_caster_base signature #234
Comments
|
Good question! Honestly, I don't remember the why of this decision. @SylvainCorlay @wolfv any idea? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I wonder if there is a reason why the
xtensor_type_caster_baseusesxt::xtensorfor the signaturextensor-python/include/xtensor-python/xtensor_type_caster_base.hpp
Line 161 in 719b9d1
instead of using
numpy.ndarray[...]xtensor-python/include/xtensor-python/pyarray.hpp
Line 72 in 719b9d1
In my opinion, using the Numpy name is more descriptive to a Python user, and actually matches the type.
I made a quick test using
which seems to work.
I could send a PR if you are interested.
Thank you