From 9c682e64d18c9cddfa2575adc68c57693862b0f5 Mon Sep 17 00:00:00 2001 From: jeanpouget-abadie Date: Thu, 4 Dec 2014 17:17:04 -0500 Subject: yaron poster --- jpa_test/rip_condition.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'jpa_test/rip_condition.py') diff --git a/jpa_test/rip_condition.py b/jpa_test/rip_condition.py index 7c1ce85..fccf9a4 100644 --- a/jpa_test/rip_condition.py +++ b/jpa_test/rip_condition.py @@ -10,11 +10,12 @@ def find_kth_rip_constants(M, k): 1 + A_1 = arg max |Mx|_2^2 s.t. |x|_2 = 1 and |x|_0 = k 1 - A_2 = arg min |Mx|_2^2 s.t. |x|_2 = 1 and |x|_0 = kx """ - delta = 10 + delta = 0 + print M.shape for col_set in itertools.combinations(xrange(M.shape[1]), k): M_kcol = M[:,list(col_set)] delta_upper, delta_lower = upperlower_bound_rip(M_kcol) - delta = min(delta, min(delta_upper, delta_lower)) + delta = max(delta, max(delta_upper, delta_lower)) return delta -- cgit v1.2.3-70-g09d2