From 809f924db2823b9e1eaf3efb9370380edc1f76ed Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Fri, 23 Jan 2015 00:38:24 +0000
Subject: [PATCH] CUDA so fast

---
 src/utils.h |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/utils.h b/src/utils.h
index 6fe0343..ee26d35 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -1,13 +1,16 @@
 #ifndef UTILS_H
 #define UTILS_H
 #include <stdio.h>
+#include <time.h>
 #include "list.h"
 
-void error(char *s);
+char *find_replace(char *str, char *orig, char *rep);
+void error(const char *s);
 void malloc_error();
 void file_error(char *s);
 void strip(char *s);
 void strip_char(char *s, char bad);
+void top_k(float *a, int n, int k, int *index);
 list *split_str(char *s, char delim);
 char *fgetl(FILE *fp);
 list *parse_csv_line(char *line);
@@ -21,8 +24,10 @@
 float constrain(float a, float max);
 float rand_normal();
 float rand_uniform();
+float sum_array(float *a, int n);
 float mean_array(float *a, int n);
 float variance_array(float *a, int n);
 float **one_hot_encode(float *a, int n, int k);
+float sec(clock_t clocks);
 #endif
 

--
Gitblit v1.10.0