-
Notifications
You must be signed in to change notification settings - Fork 213
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
Passing vector<complex<float>> to function argument #286
Comments
Nanobind currently lacks a type caster for `std::complex``. Help on this front is appreciated. This is not an issue but a feature request, so I am closing the ticket. |
Ok! A few questions:
|
This project does not accept feature requests, though you are welcome to submit a PR. And yes, that's right, the type caster would go to |
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I struggle in passing a vector of complex values to a function.
For example, the following works as expected for
float
type:leads to:
However, if using
std::complex<float>
type instead offloat
:leads to:
I did try to add an explicit
type_caster
instl/vector.h
(defined before the generictypecaster<Type>
):which leads to the exact same error as above.
Any idea how this should be done in nanobind?
(thanks to this new C++/Python binder!)
The text was updated successfully, but these errors were encountered: