aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGertjan van den Burg <burg@ese.eur.nl>2016-09-20 16:34:48 +0200
committerGertjan van den Burg <burg@ese.eur.nl>2016-09-20 16:34:48 +0200
commit8ea095b25b5015400f934f18502fd97683d792ab (patch)
treef2a3c23fec9582b25332f1417851816c95cb2d6e /src
parentadd unit tests for string utilities (diff)
downloadgensvm-8ea095b25b5015400f934f18502fd97683d792ab.tar.gz
gensvm-8ea095b25b5015400f934f18502fd97683d792ab.zip
Rename print_matrix to reflect namespace
Diffstat (limited to 'src')
-rw-r--r--src/gensvm_debug.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gensvm_debug.c b/src/gensvm_debug.c
index d94711a..f4b4151 100644
--- a/src/gensvm_debug.c
+++ b/src/gensvm_debug.c
@@ -21,13 +21,16 @@
* @param[in] rows number of rows of M
* @param[in] cols number of columns of M
*/
-void print_matrix(double *M, long rows, long cols)
+void gensvm_print_matrix(double *M, long rows, long cols)
{
long i, j;
for (i=0; i<rows; i++) {
- for (j=0; j<cols; j++)
- note("%+6.6f ", matrix_get(M, cols, i, j));
+ for (j=0; j<cols; j++) {
+ if (j > 0)
+ note(" ");
+ note("%+6.6f", matrix_get(M, cols, i, j));
+ }
note("\n");
}
note("\n");