-
Notifications
You must be signed in to change notification settings - Fork 48
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
cast between complex return None #93
Comments
Hmm, I think we would ideally implement something like |
Thanks for your idea. I will try to implement direct conversion method on Complex later. 😊 |
Hi, not sure what the current state is, but casting a complex value to a higher precision would be nice to have (like let a = Complex32{re: 1., im: 1.};
let b = a as Complex64; |
I am writing a function, which uses the cast between "Complex" and other "Num"s such as "u64, f64, Complex". The cast between "Complex" and primitive will be correct. But how can I easily cast between "Complex" and "Complex"? This always return a "None" and leads panic.
The text was updated successfully, but these errors were encountered: