src/convex.rs

branch
dev
changeset 88
086a59b3a2b4
parent 73
ca53a962106c
--- a/src/convex.rs	Sun Jan 19 16:49:09 2025 +0100
+++ b/src/convex.rs	Sun Jan 19 22:33:21 2025 +0100
@@ -68,12 +68,12 @@
 }
 
 
+/// Constraint to the unit ball of the norm described by `E`.
 pub struct NormConstraint<F : Float, E : NormExponent> {
     radius : F,
     norm : NormMapping<F, E>,
 }
 
-
 impl<Domain, E, F> ConvexMapping<Domain, F> for NormMapping<F, E>
 where
     Domain : Space,
@@ -160,6 +160,7 @@
     }
 }
 
+/// Projection to the unit ball of the norm described by `E`.
 pub struct NormProjection<F : Float, E : NormExponent> {
     radius : F,
     exponent : E,

mercurial