From 2cb9ebdfbb2550857d9270a9c543a8156f959c54 Mon Sep 17 00:00:00 2001 From: dance858 Date: Sun, 17 Nov 2024 12:50:48 -0800 Subject: [PATCH] removed cast --- src/spectral_cones/logdeterminant/log_cone_wrapper.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/spectral_cones/logdeterminant/log_cone_wrapper.c b/src/spectral_cones/logdeterminant/log_cone_wrapper.c index e56fefe5..c309b463 100644 --- a/src/spectral_cones/logdeterminant/log_cone_wrapper.c +++ b/src/spectral_cones/logdeterminant/log_cone_wrapper.c @@ -38,10 +38,6 @@ scs_int log_cone_IPM(scs_float t0, scs_float v0, scs_float *x0, scs_float *u1, scs_int n, scs_float *workspace, Newton_stats *stats, scs_int variant); -// forward declare from util_spectral_cones.c -scs_float sum_log(const scs_float *x, scs_int n); -bool is_pos(const scs_float *x, scs_int n); - // forward declare from this file static void check_opt_cond_log_cone(const scs_float *tvx, scs_float t0, scs_float v0, const scs_float *x0, scs_int n, @@ -196,7 +192,7 @@ static void check_opt_cond_log_cone(const scs_float *tvx, scs_float t0, // ---------------------------------------------------------------------- if (dualt > 0 && is_pos(dualx, n)) { - dual_res = dualt * (n * log(dualt) - (int)(n)-sum_log(dualx, n)) - dualv; + dual_res = dualt * (n * log(dualt) - n - sum_log(dualx, n)) - dualv; } else {