Fix Neg Output in Vectorspace

Sun, 23 Aug 2026 22:12:08 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Sun, 23 Aug 2026 22:12:08 -0500
changeset 205
30af49ae2135
parent 204
016122e0384b
child 206
ce37ff3ce507

Fix Neg Output in Vectorspace

src/linops.rs file | annotate | diff | comparison | revisions
--- a/src/linops.rs	Tue Aug 04 14:53:58 2026 -0500
+++ b/src/linops.rs	Sun Aug 23 22:12:08 2026 -0500
@@ -36,7 +36,7 @@
     + Add<Self::PrincipalV, Output = Self::PrincipalV>
     + Sub<Self, Output = Self::PrincipalV>
     + Sub<Self::PrincipalV, Output = Self::PrincipalV>
-    + Neg
+    + Neg<Output = Self::PrincipalV>
     + for<'b> Add<&'b Self, Output = <Self as VectorSpace>::PrincipalV>
     + for<'b> Sub<&'b Self, Output = <Self as VectorSpace>::PrincipalV>
 {

mercurial