-
Notifications
You must be signed in to change notification settings - Fork 333
Implement Neg and Not for &ArrayBase #374
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
Conversation
These are not really comments on your PR, but it's imperfections in existing operator impls that are catching up with us. It explains where we are and what we want to improve.
|
How does
We could do impl<'a, A, S, D> Neg for &'a ArrayBase<S, D>
where &'a A: Neg<Output=A>, ... and then use |
It the non-needs drop case makes it much easier to use uninitialized data ( |
I changed the implementation to use You may notice that I also removed the generic parameter
The help for the error indicates that there's a recursive trait bound, but I don't see it. If you can figure out what's going on, please let me know. Otherwise, changing |
It turns out that it's possible to avoid the error by manually specifying the type of |
Looks neat, |
No description provided.