From 5b7ed1d80560946efd18c9766d8c500fd1955fd2 Mon Sep 17 00:00:00 2001 From: gbanjac Date: Thu, 19 Jul 2018 09:19:37 +0200 Subject: [PATCH] Commented out printing functions in order to increase code coverage --- src/qdldl.c | 48 ++++++++++++++++++++++---------------------- tests/qdldl_tester.c | 4 ---- 2 files changed, 24 insertions(+), 28 deletions(-) diff --git a/src/qdldl.c b/src/qdldl.c index 82ead86..7380728 100644 --- a/src/qdldl.c +++ b/src/qdldl.c @@ -4,30 +4,30 @@ #define QDLDL_USED (1) #define QDLDL_UNUSED (0) -//DEBUG -#include -void qdprint_arrayi(const QDLDL_int* data, QDLDL_int n,char* varName){ - - QDLDL_int i; - printf("%s = [",varName); - for(i=0; i< n; i++){ - printf("%lli,",data[i]); - } - printf("]\n"); - -} - -void qdprint_arrayf(const QDLDL_float* data, QDLDL_int n, char* varName){ - - QDLDL_int i; - printf("%s = [",varName); - for(i=0; i< n; i++){ - printf("%.3g,",data[i]); - } - printf("]\n"); - -} -// END DEBUG +// //DEBUG +// #include +// void qdprint_arrayi(const QDLDL_int* data, QDLDL_int n,char* varName){ + +// QDLDL_int i; +// printf("%s = [",varName); +// for(i=0; i< n; i++){ +// printf("%lli,",data[i]); +// } +// printf("]\n"); + +// } + +// void qdprint_arrayf(const QDLDL_float* data, QDLDL_int n, char* varName){ + +// QDLDL_int i; +// printf("%s = [",varName); +// for(i=0; i< n; i++){ +// printf("%.3g,",data[i]); +// } +// printf("]\n"); + +// } +// // END DEBUG /* Compute the elimination tree for a quasidefinite matrix in compressed sparse column form. diff --git a/tests/qdldl_tester.c b/tests/qdldl_tester.c index 06be17f..84b2e1d 100644 --- a/tests/qdldl_tester.c +++ b/tests/qdldl_tester.c @@ -13,10 +13,6 @@ QDLDL_float vec_diff_norm(QDLDL_float* x, QDLDL_float* y, QDLDL_int len); int ldl_factor_solve(QDLDL_int An, QDLDL_int* Ap,QDLDL_int* Ai, QDLDL_float* Ax,QDLDL_float* b); -//utility functions for debug -void qdprint_arrayi(const QDLDL_int* data, QDLDL_int n,char* varName); -void qdprint_arrayf(const QDLDL_float* data, QDLDL_int n, char* varName); - // Include tests #include "test_basic.h" #include "test_identity.h"