From 625a25b181a9093ff4a729a0bc8b1694bfe7078d Mon Sep 17 00:00:00 2001 From: dance858 Date: Sun, 17 Nov 2024 12:10:43 -0800 Subject: [PATCH] changed tolerance of test --- src/spectral_cones/nuclear/nuclear_cone.c | 2 +- test/spectral_cones_problems/several_nuc_cone.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/spectral_cones/nuclear/nuclear_cone.c b/src/spectral_cones/nuclear/nuclear_cone.c index 7638500c..238f6647 100644 --- a/src/spectral_cones/nuclear/nuclear_cone.c +++ b/src/spectral_cones/nuclear/nuclear_cone.c @@ -35,7 +35,7 @@ scs_int ell1_cone_proj_sorted(scs_float t0, const scs_float *x0, scs_float *proj scs_int n); // X is of size m x n, stored column major. It is assumed that m >= n. -scs_int SCS(proj_nuclear_cone)(scs_float *tX, size_t m, size_t n, ScsConeWork *c) +scs_int SCS(proj_nuclear_cone)(scs_float *tX, scs_int m, scs_int n, ScsConeWork *c) { assert(m >= n); scs_float *X = tX + 1; diff --git a/test/spectral_cones_problems/several_nuc_cone.h b/test/spectral_cones_problems/several_nuc_cone.h index 9fc56032..be4d0251 100644 --- a/test/spectral_cones_problems/several_nuc_cone.h +++ b/test/spectral_cones_problems/several_nuc_cone.h @@ -275,8 +275,8 @@ static const char *several_nuc_cone(void) k->sl_size = sl_size; scs_set_default_settings(stgs); - stgs->eps_abs = 1e-6; - stgs->eps_rel = 1e-6; + stgs->eps_abs = 1e-7; + stgs->eps_rel = 1e-7; stgs->eps_infeas = 1e-9; exitflag = scs(d, k, stgs, sol, &info);