src/subproblem/nonneg.rs

branch
dev
changeset 39
6316d68b58af
parent 34
efa60bc4f743
--- a/src/subproblem/nonneg.rs	Thu Jan 23 23:35:28 2025 +0100
+++ b/src/subproblem/nonneg.rs	Thu Jan 23 23:34:05 2025 +0100
@@ -326,7 +326,7 @@
     let inner_τ = inner.fb_τ0 / mA_normest;
 
     match inner.method {
-        InnerMethod::FB | InnerMethod::Default =>
+        InnerMethod::FB =>
             quadratic_nonneg_fb(mA, g, λ, x, inner_τ, iterator),
         InnerMethod::SSN =>
             quadratic_nonneg_ssn(mA, g, λ, x, inner_τ, iterator).unwrap_or_else(|e| {
@@ -334,6 +334,6 @@
                 let ins = InnerSettings::<F>::default();
                 quadratic_nonneg_fb(mA, g, λ, x, inner_τ, ins.iterator_options)
             }),
-        InnerMethod::PDPS => unimplemented!(),
+        other => unimplemented!("${other:?} is unimplemented"),
     }
 }

mercurial