-
Notifications
You must be signed in to change notification settings - Fork 307
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
impl Mul<Array<Complex<T>>> for T #1260
Comments
I think it should be possible, actually, here's an example |
The implementation can also be done for |
Also, doing this for |
Please see this for doc on scalars on the left hand side: https://docs.rs/ndarray/latest/ndarray/trait.ScalarOperand.html Just for baseline/background. I don't know if this is a good idea, don't know if there are any drawbacks. Since complex implements mixed float-complex operations, we have the necessary precedent to consider it. |
I did a quick scan of the issues and didn't see this. For an
array: Array<Complex<f64>>
(for example), i think it's perfectly reasonable to expectto work. I've only ever gotten a rhs mul e.g.
array * 2.0
to work. (see example, non-working example). Is there a reason this hasn't been done, e.g. orphan rules?The text was updated successfully, but these errors were encountered: