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

add automated conversions for std::complex? #470

Open
stevengj opened this issue May 19, 2020 · 1 comment
Open

add automated conversions for std::complex? #470

stevengj opened this issue May 19, 2020 · 1 comment

Comments

@stevengj
Copy link
Contributor

Since std::complex<T> can be losslessly converted to/from Complex{T} for typical bitstypes T, it seems like these conversions should be automatic in Cxx.jl?

I was thinking of submitting a PR for this, but wanted to check whether this is desired.

@goretkin
Copy link
Contributor

I think the automatic conversions in PyCall are great, and it's also great to be able to inhibit the conversion with e.g. py"1j"o.

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

No branches or pull requests

2 participants