Skip to content

Commit

Permalink
Commented out printing functions in order to increase code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
gbanjac committed Jul 19, 2018
1 parent 2644bc2 commit 5b7ed1d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 28 deletions.
48 changes: 24 additions & 24 deletions src/qdldl.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,30 @@
#define QDLDL_USED (1)
#define QDLDL_UNUSED (0)

//DEBUG
#include <stdio.h>
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 <stdio.h>
// 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.
Expand Down
4 changes: 0 additions & 4 deletions tests/qdldl_tester.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 5b7ed1d

Please sign in to comment.