src/convex.rs

branch
dev
changeset 146
3f9a03f95457
parent 132
89371dc4d637
child 150
c4e394a9c84c
--- a/src/convex.rs	Sun May 18 23:31:48 2025 -0500
+++ b/src/convex.rs	Sat Aug 30 22:25:28 2025 -0500
@@ -135,10 +135,7 @@
         Self: 'a;
 
     fn conjugate(&self) -> Self::Conjugate<'_> {
-        NormConstraint {
-            radius: F::ONE,
-            norm: self.exponent.dual_exponent().as_mapping(),
-        }
+        NormConstraint { radius: F::ONE, norm: self.exponent.dual_exponent().as_mapping() }
     }
 }
 
@@ -178,10 +175,7 @@
     #[inline]
     fn prox_mapping(&self, _τ: Self::Codomain) -> Self::Prox<'_> {
         assert!(self.radius >= F::ZERO);
-        NormProjection {
-            radius: self.radius,
-            exponent: self.norm.exponent,
-        }
+        NormProjection { radius: self.radius, exponent: self.norm.exponent }
     }
 }
 

mercurial