From 17c776a0eab276e9d1057cb1abf8fd7d77d54ada Mon Sep 17 00:00:00 2001
From: Edmond Yoo <hj3yoo@uwaterloo.ca>
Date: Sat, 13 Oct 2018 04:26:32 +0000
Subject: [PATCH] replaced neural net with opencv :'(

---
 src/matrix.h |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/matrix.h b/src/matrix.h
index 182135a..641b596 100644
--- a/src/matrix.h
+++ b/src/matrix.h
@@ -2,7 +2,7 @@
 #define MATRIX_H
 typedef struct matrix{
     int rows, cols;
-    double **vals;
+    float **vals;
 } matrix;
 
 matrix make_matrix(int rows, int cols);
@@ -10,8 +10,13 @@
 void print_matrix(matrix m);
 
 matrix csv_to_matrix(char *filename);
+void matrix_to_csv(matrix m);
 matrix hold_out_matrix(matrix *m, int n);
+float matrix_topk_accuracy(matrix truth, matrix guess, int k);
+void matrix_add_matrix(matrix from, matrix to);
+void scale_matrix(matrix m, float scale);
+matrix resize_matrix(matrix m, int size);
 
-double *pop_column(matrix *m, int c);
+float *pop_column(matrix *m, int c);
 
 #endif

--
Gitblit v1.10.0